Render field form label.

@param mixed $table Name or instance of the Table
@param string $field Field name
@param mixed[] $options Field options
@return string Field input
421978
public function renderName($table, string $field, array $options = []) : string
    {
        $handler = self::getByTableField($table, $field, $options, $this->cakeView);

        return $handler->renderName();
    }
865228
public function render_field_settings($field)
    {

        /*
        *  acf_render_field_setting
        *
        *  This function will create a setting for your field.
        *  Simply pass the $field parameter and an array of field settings.
        *  The array of settings does not require a `value` or `prefix`; These settings are found from the $field array.
        *
        *  More than one setting can be added by copy/paste the above code.
        *  Please note that you must also have a matching $defaults value for the field name (font_size)
        */

        // default_value
        acf_render_field_setting($field, array(
            'label' => __('Default Value', 'acf'),
            'instructions' => __('Enter each default value on a new line', 'acf'),
            'type' => 'textarea',
            'name' => 'default_value'
        ));

        // allow_null
        acf_render_field_setting($field, array(
            'label' => __('Allow Null?', 'acf'),
            'instructions' => '',
            'type' => 'radio',
            'name' => 'allow_null',
            'choices' => array(
                1 => __('Yes', 'acf'),
                0 => __('No', 'acf')
            ),
            'layout' => 'horizontal'
        ));

        // multiple
        acf_render_field_setting($field, array(
            'label'         => __('Select multiple values?','acf'),
            'instructions'  => '',
            'type'          => 'radio',
            'name'          => 'multiple',
            'choices'       => array(
                1               => __("Yes",'acf'),
                0               => __("No",'acf'),
            ),
            'layout'    =>  'horizontal',
        ));

    }
1316778
protected function _getInput($fieldName, $options)
    {
        $label = $options['labelOptions'];
        unset($options['labelOptions']);
        switch (strtolower($options['type'])) {
            case 'select':
                $opts = $options['options'];
                unset($options['options']);

                return $this->select($fieldName, $opts, $options + ['label' => $label]);
            case 'radio':
                $opts = $options['options'];
                unset($options['options']);

                return $this->radio($fieldName, $opts, $options + ['label' => $label]);
            case 'multicheckbox':
                $opts = $options['options'];
                unset($options['options']);

                return $this->multiCheckbox($fieldName, $opts, $options + ['label' => $label]);
            case 'input':
                throw new RuntimeException("Invalid type 'input' used for field '$fieldName'");

            default:
                return $this->{$options['type']}($fieldName, $options);
        }
    }
788012
public function renderField($name, $group = '', array $options = [])
    {
        $field = $this->getField($name, $group);

        return $field->render($options);
    }
586071
public function getAlterTableSql($table, array $options)
    {
        $table = $this->buildRealTableName($table);
        return $this->getSchema()->getAlterTableSql($table, $options);
    }
1365430
public function tableCell($content, array $options = [])
    {
        return $this->formatTemplate('tablecell', [
            'attrs' => $this->templater()->formatAttributes($options),
            'content' => $content
        ]);
    }
1081721
private function setFormFieldLabel($name, $options)
    {
        if (isset($options['label']) && $options['label'] != false) {
            $label = isset($options['label']) ? $options['label'] : $this->formatFieldLabel($name);

            return FormFacade::label($name, $label, ['class' => 'form-label']).'&nbsp;';
        } elseif (!isset($options['label'])) {
            return FormFacade::label($name, $this->formatFieldLabel($name), ['class' => 'form-label']).'&nbsp;';
        }
    }
549027
public function label($name, $value = null, $options = [])
    {
        if (!$value) {
            return '';
        }
        $this->labels[] = $name;
        $options        = $this->html->attributes($options);
        $value          = e($this->formatLabel($name, $value));
        return '<label for="' . $name . '"' . $options . '>' . $value . '</label>';
    }
687939
public function resolveFieldName($field, array $options = array())
    {
        if(isset($this->mappings[$field])) {
            return $this->mappings[$field];
        }

        throw new \InvalidArgumentException(sprintf('MappedFieldResolver does not support field "%s"', $field));
    }
633179
public function label($name, $value = null, $options = [])
    {
        return parent::label($name, $value, $this->appendErrors($name, $options));
    }
1142180
public function getField($table, $field, $options = array(), $start = 0)
    {
        // Get Result
        $result = $this->getRow($table, array($field), $options, $start);
        if (count($result) >= 1)
            return array_shift($result);
        else
            return false;
    }
934614
public function render(TableView $table, array $options = [])
    {
        $options = array_merge($this->defaults, $options);

        $template = $options['template'];
        if ($template instanceof \Twig_TemplateWrapper) {
            $this->template = $template;
        } else {
            $this->template = $this->environment->load($template);
        }

        return $this->template->renderBlock('table', ['table' => $table, 'options' => $options]);
    }
29874
public function render(array $options = [])
    {
        $attrs['id'] = $this->getAttribute('controlId', $this->getId() . '-control');
        $attrs['class'] = $this->type . '-field ' . $this->getAttribute('controlClass');

        $attrs = array_merge($attrs, (array) $this->getAttribute('controlAttribs'));

        if ($this->form && $this->form->getRenderer()) {
            return $this->wrapElements($this->form->getRenderer()->renderField($this, $attrs, $options));
        }

        $label = !empty($options['no_label']) ? '' : $this->renderLabel($options);
        $input = $this->renderInput($options);

        return $this->wrapElements(new HtmlElement('div', $label . $input, $attrs));
    }
94519
public static function adminFormFieldLabel($field) {

        // Does the field have an alternate name?
        $name = $field['name'];

        if (!empty($field['alternate_form_name'])) {
            $name = $field['alternate_form_name'];
        } 

        if ($name == "id") return "ID";

        $html = str_replace("_", " ", $name);
        $html = ucwords($html);
        return $html;
    }
43780
public static function renderFields(
        array $fields,
        $labelCols = 'col-md-3',
        $inputCols = 'col-md-9',
        $tmpl = 'bootstrap.form.fields'
    ) {
        return WidgetHelper::render($tmpl, [
            'fields' => $fields,
            'label_cols' => $labelCols,
            'input_cols' => $inputCols,
        ]);
    }
1336210
public function render(Field $field, $data, array $options)
    {
        $value = $this->dataExtractor->get($field, $data);
        if (null === $value) {
            return null;
        }

        Assert::isInstanceOf($value, \DateTimeInterface::class);

        return $value->format($options['format']);
    }
860561
public function arrayToTable(array $array, array $options = []): string
    {
        $table = '<table class="table table-condensed';
        if (isset($options['class'])) {
            $table .= ' ' . $options['class'] . ' ';
        }
        $table .= '">';

        foreach ($array as $fieldname => $value) {
            if (is_callable($options['fieldnameCallback'])) {
                $callback = $options['fieldnameCallback'];
                $fieldname = $callback($fieldname);
            }

            $table .= '<tr>';
                $table .= '<td>' . $fieldname . '</td>';
            if (is_array($value)) {
                $table .= '<td>' . $this->arrayToTable($value, $options) . '</td>';
            } else {
                if ($value === null) {
                    $value = 'NULL';
                }
                $table .= '<td>' . $value . '</td>';
            }
            $table .= '</tr>';
        }
        $table .= '</table>';

        return $table;
    }