public function EntityDisplayFormBase::getRegions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.'),
),
);
4 calls to EntityDisplayFormBase::getRegions()
- EntityDisplayFormBase::buildExtraFieldRow in core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php - Builds the table row structure for a single extra field.
- EntityDisplayFormBase::buildFieldRow in core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php - Builds the table row structure for a single field.
- EntityDisplayFormBase::form in core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php - Gets the actual form array to be built.
- EntityDisplayFormBase::getRegionOptions in core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php - Returns an associative array of all regions.
File
- core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php, line 99 - Contains \Drupal\field_ui\Form\EntityDisplayFormBase.
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\FormCode
public function getRegions() {
return array(
'content' => array(
'title' => $this
->t('Content'),
'invisible' => TRUE,
'message' => $this
->t('No field is displayed.'),
),
'hidden' => array(
'title' => $this
->t('Disabled', array(), array(
'context' => 'Plural',
)),
'message' => $this
->t('No field is hidden.'),
),
);
}