You are here

public function RssFields::validateOptionsForm in Views RSS 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/style/RssFields.php \Drupal\views_rss\Plugin\views\style\RssFields::validateOptionsForm()

Validate the options form.

Overrides StylePluginBase::validateOptionsForm

File

src/Plugin/views/style/RssFields.php, line 276
Definition of Drupal\views\Plugin\views\style\Rss.

Class

RssFields
Default style plugin to render an RSS feed from fields.

Namespace

Drupal\views_rss\Plugin\views\style

Code

public function validateOptionsForm(&$form, FormStateInterface $form_state) {
  parent::validateOptionsForm($form, $form_state);
  $hook = 'views_rss_options_form_validate';
  $modules = \Drupal::moduleHandler()
    ->getImplementations($hook);
  foreach ($modules as $module) {
    \Drupal::moduleHandler()
      ->invoke($module, $hook, array(
      $form,
      $form_state,
    ));
  }
}