You are here

protected function FlowForm::shouldOpenAll in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Form/FlowForm.php \Drupal\cms_content_sync\Form\FlowForm::shouldOpenAll()
  2. 2.0.x src/Form/FlowForm.php \Drupal\cms_content_sync\Form\FlowForm::shouldOpenAll()

Check whether all of the sub-forms per entity type should be open by default. This is important if a Flow has been created without setting all options where the user now edits the Flow once to provide all options provided by the form.

Return value

bool

2 calls to FlowForm::shouldOpenAll()
FlowForm::form in src/Form/FlowForm.php
Gets the actual form array to be built.
FlowForm::renderEntityType in src/Form/FlowForm.php
Render all bundles for the given entity type. Displayed in vertical tabs from the parent form.

File

src/Form/FlowForm.php, line 782

Class

FlowForm
Form handler for the Flow add and edit forms.

Namespace

Drupal\cms_content_sync\Form

Code

protected function shouldOpenAll(FormStateInterface $form_state) {
  return isset($_GET['open']) || !empty($form_state
    ->getValue('open_all'));
}