public function FormComponentBase::getAdminLabel in Flexiform 8
Get the admin label for the component.
Return value
string The administrative label for the component.
Overrides FormComponentInterface::getAdminLabel
4 methods override FormComponentBase::getAdminLabel()
- CustomTextComponent::getAdminLabel in src/
Plugin/ FormComponentType/ CustomTextComponent.php - Get the admin label for the component.
- ExtraFieldComponent::getAdminLabel in src/
Plugin/ FormComponentType/ ExtraFieldComponent.php - Get the admin label for the component.
- FieldWidgetComponent::getAdminLabel in src/
Plugin/ FormComponentType/ FieldWidgetComponent.php - Get the admin label for the component.
- FormElementComponent::getAdminLabel in src/
Plugin/ FormComponentType/ FormElementComponent.php - Get the admin label for the component.
File
- src/
FormComponent/ FormComponentBase.php, line 74
Class
- FormComponentBase
- Provides the base form component plugin.
Namespace
Drupal\flexiform\FormComponentCode
public function getAdminLabel() {
if ($namespace = $this
->getEntityNamespace()) {
return $this->options['label'] . ' [' . $this
->getFormEntityManager()
->getFormEntity($namespace)
->getFormEntityContextDefinition()
->getLabel() . ']';
}
return $this->options['label'];
}