function EntityBundle::submitConfigurationForm

Overrides ConditionPluginBase::submitConfigurationForm

File

src/Plugin/Condition/EntityBundle.php, line 98

Class

EntityBundle
Provides a 'Entity Bundle' condition.

Namespace

Drupal\ctools\Plugin\Condition

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
    $this->configuration['bundles'] = array_filter($form_state->getValue('bundles'));
    parent::submitConfigurationForm($form, $form_state);
}