public function FormModeManagerDisplayEditForm::getSubmittedModes in Form mode manager 8
Same name and namespace in other branches
- 8.2 src/Form/FormModeManagerDisplayEditForm.php \Drupal\form_mode_manager\Form\FormModeManagerDisplayEditForm::getSubmittedModes()
Get value of 'display_modes_custom' element.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array|null An array with form-mode-id selected by users.
2 calls to FormModeManagerDisplayEditForm::getSubmittedModes()
- FormModeManagerDisplayEditForm::submittedDisplayModes in src/
Form/ FormModeManagerDisplayEditForm.php - Retrieve all form-modes submitted form-modes.
- FormModeManagerDisplayEditForm::updateDisplayModes in src/
Form/ FormModeManagerDisplayEditForm.php - Determine whenever a formMode(s) has added/deleted onto entityTypes.
File
- src/
Form/ FormModeManagerDisplayEditForm.php, line 186
Class
- FormModeManagerDisplayEditForm
- Form Mode Manager enhancements for edit form of the EntityFormDisplay.
Namespace
Drupal\form_mode_manager\FormCode
public function getSubmittedModes(FormStateInterface $form_state) {
return $form_state
->getValue('display_modes_custom');
}