You are here

public function Slideshow::validateOptionsForm in Views Slideshow 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/views/style/Slideshow.php \Drupal\views_slideshow\Plugin\views\style\Slideshow::validateOptionsForm()

Validate the options form.

Overrides StylePluginBase::validateOptionsForm

File

src/Plugin/views/style/Slideshow.php, line 290
Contains \Drupal\views_slideshow\Plugin\views\style\Slideshow.

Class

Slideshow
Style plugin to render each item in a grid cell.

Namespace

Drupal\views_slideshow\Plugin\views\style

Code

public function validateOptionsForm(&$form, FormStateInterface $form_state) {
  $arguments = array(
    &$form,
    &$form_state,
    &$this,
  );

  // Call all modules that use hook_views_slideshow_options_form_validate
  foreach (\Drupal::moduleHandler()
    ->getImplementations('views_slideshow_options_form_validate') as $module) {
    $function = $module . '_views_slideshow_options_form_validate';
    call_user_func_array($function, $arguments);
  }
}