public function SearchExcludeNodeSearch::submitConfigurationForm in Search Exclude (Node) 8
Same name and namespace in other branches
- 2.x src/Plugin/Search/SearchExcludeNodeSearch.php \Drupal\search_exclude\Plugin\Search\SearchExcludeNodeSearch::submitConfigurationForm()
- 2.0.x src/Plugin/Search/SearchExcludeNodeSearch.php \Drupal\search_exclude\Plugin\Search\SearchExcludeNodeSearch::submitConfigurationForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides NodeSearch::submitConfigurationForm
File
- src/
Plugin/ Search/ SearchExcludeNodeSearch.php, line 138
Class
- SearchExcludeNodeSearch
- Search plugin to exclude node bundles from the Search module index.
Namespace
Drupal\search_exclude\Plugin\SearchCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['excluded_bundles'] = array_filter($form_state
->getValue('excluded_bundles'));
parent::submitConfigurationForm($form, $form_state);
}