public function ExtraFieldComponent::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/ ExtraFieldComponent.php, line 67
Class
- ExtraFieldComponent
- Component class for extra fields.
Namespace
Drupal\flexiform\Plugin\FormComponentTypeCode
public function getAdminLabel() {
if (count($this
->getFormEntityManager()
->getFormEntities()) > 1) {
return $this->extraField['label'] . ' [' . $this
->getFormEntityManager()
->getFormEntity('')
->getFormEntityContextDefinition()
->getLabel() . ']';
}
return $this->extraField['label'];
}