You are here

protected function FlowForm::isBundleOpen 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::isBundleOpen()
  2. 2.0.x src/Form/FlowForm.php \Drupal\cms_content_sync\Form\FlowForm::isBundleOpen()

Should we display this bundle open or not?

Parameters

$type_key:

$entity_bundle_name:

Return value

bool

File

src/Form/FlowForm.php, line 2096

Class

FlowForm
Form handler for the Flow add and edit forms.

Namespace

Drupal\cms_content_sync\Form

Code

protected function isBundleOpen(FormStateInterface $form_state, $type_key, $entity_bundle_name) {
  $values = $form_state
    ->getValues();
  return isset($values[$type_key][$entity_bundle_name]['handler']) && 'ignore' !== $values[$type_key][$entity_bundle_name]['handler'];
}