function EntityDisplayFormBase::getRegions
Same name and namespace in other branches
- 11.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getRegions()
Get the regions needed to create the overview form.
Return value
array Example usage:
return array(
'content' => array(
// label for the region.
'title' => $this->t('Content'),
// Indicates if the region is visible in the UI.
'invisible' => TRUE,
// A message to indicate that there is nothing to be displayed in
// the region.
'message' => $this->t('No field is displayed.'),
),
);
File
-
core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php, line 114
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\FormCode
public function getRegions() {
return [
'content' => [
'title' => $this->t('Content'),
'invisible' => TRUE,
'message' => $this->t('No field is displayed.'),
],
'hidden' => [
'title' => $this->t('Disabled', [], [
'context' => 'Plural',
]),
'message' => $this->t('No field is hidden.'),
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.