public function FieldWidgetComponent::getAdminLabel in Flexiform 8
Get the admin label for the component.
Return value
string The administrative label for the component.
Overrides FormComponentBase::getAdminLabel
File
- src/
Plugin/ FormComponentType/ FieldWidgetComponent.php, line 190
Class
- FieldWidgetComponent
- Component class for field widgets.
Namespace
Drupal\flexiform\Plugin\FormComponentTypeCode
public function getAdminLabel() {
if (count($this
->getFormEntityManager()
->getFormEntities()) > 1) {
$namespace = $this
->getEntityNamespace();
return $this
->getFieldDefinition()
->getLabel() . ' [' . $this
->getFormEntityManager()
->getContext($namespace)
->getContextDefinition()
->getLabel() . ']';
}
return $this
->getFieldDefinition()
->getLabel();
}