You are here

public function Link::validateOptionsForm in Views link area 8

Validate the options form.

Overrides PluginBase::validateOptionsForm

File

src/Plugin/views/area/Link.php, line 248

Class

Link
Views area Link handler.

Namespace

Drupal\views_linkarea\Plugin\views\area

Code

public function validateOptionsForm(&$form, FormStateInterface $form_state) {
  $options = $form_state
    ->getValue('options');

  // @todo validate like \Drupal\link\Plugin\Field\FieldWidget\LinkWidget
  $form_state
    ->setValue('options', $options);
}