public function FlexiformElement::label in Flexiform 7
Get the label for this form element.
19 calls to FlexiformElement::label()
- FlexiformElement::removeForm in includes/
flexiform.element.inc - Build the remove form for the element.
- FlexiformElement::toSettingsArray in includes/
flexiform.element.inc - Convert this object into a settings array.
- FlexiformElementCustomHtml::configureForm in includes/
element/ custom_html.element.inc - Builds the configuration form for the form element.
- FlexiformElementEntityProperty::configureForm in includes/
element/ property.element.inc - Build the configure form for the element.
- FlexiformElementEntityProperty::form in includes/
element/ property.element.inc - Return the form element for this FlexiformElement.
2 methods override FlexiformElement::label()
- FlexiformElementField::label in includes/
element/ field.element.inc - Overrides FlexiformElement::label().
- FlexiformElementFlexiform::label in includes/
element/ flexiform.element.inc - Overrires FlexiformElement::label().
File
- includes/
flexiform.element.inc, line 87 - Controller class for flexiform elements.
Class
- FlexiformElement
- Base class for all FlexiformElements
Code
public function label() {
if (!empty($this->settings['label'])) {
return $this->settings['label'];
}
return $this->element_info['label'];
}