AceCustomFieldType::getField PHP Method

getField() public method

Returns the output of the field type.
public getField ( $aField )
        public function getField($aField)
        {
            $aInputAttributes = array();
            foreach ($aField['options'] as $key => $value) {
                if (false === $value) {
                    $value = 0;
                }
                $aInputAttributes['data-ace_' . $key] = $value;
            }
            unset($aField['attributes']['value']);
            $aInputAttributes = array_merge($aInputAttributes, $aField['attributes']);
            return $aField['before_label'] . "<div class='admin-page-framework-input-label-container'>" . "<label for='{$aField['input_id']}'>" . $aField['before_input'] . "<textarea " . $this->generateAttributes($aInputAttributes) . " >" . $aField['value'] . "</textarea>" . $aField['after_input'] . "</label>" . "<div class='repeatable-field-buttons'></div>" . "</div>" . $aField['after_label'];
        }