protected function EntityDisplayFormBase::saveDisplayStatuses 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::saveDisplayStatuses()
Saves the updated display mode statuses.
Parameters
array $display_statuses: An array holding updated form or view mode statuses.
1 call to EntityDisplayFormBase::saveDisplayStatuses()
- EntityDisplayFormBase::submitForm in core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
File
- core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php, line 873 - Contains \Drupal\field_ui\Form\EntityDisplayFormBase.
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\FormCode
protected function saveDisplayStatuses($display_statuses) {
$displays = $this
->getDisplays();
foreach ($displays as $display) {
$display
->set('status', $display_statuses[$display
->get('mode')]);
$display
->save();
}
}