You are here

public function FormModeManagerDisplayEditForm::getDefaultModes in Form mode manager 8

Same name and namespace in other branches
  1. 8.2 src/Form/FormModeManagerDisplayEditForm.php \Drupal\form_mode_manager\Form\FormModeManagerDisplayEditForm::getDefaultModes()

Get value of 'display_modes_custom' element.

Parameters

array $form: An associative array containing the structure of the form.

Return value

array|null An array with form-mode-id present before submission.

2 calls to FormModeManagerDisplayEditForm::getDefaultModes()
FormModeManagerDisplayEditForm::defaultDisplayModes in src/Form/FormModeManagerDisplayEditForm.php
Retrieve all form-modes selected before changes.
FormModeManagerDisplayEditForm::updateDisplayModes in src/Form/FormModeManagerDisplayEditForm.php
Determine whenever a formMode(s) has added/deleted onto entityTypes.

File

src/Form/FormModeManagerDisplayEditForm.php, line 199

Class

FormModeManagerDisplayEditForm
Form Mode Manager enhancements for edit form of the EntityFormDisplay.

Namespace

Drupal\form_mode_manager\Form

Code

public function getDefaultModes(array $form) {
  return $form['modes']['display_modes_custom']['#default_value'];
}