By walkingdexter on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.7.x
Introduced in version:
8.7.0
Issue links:
Description:
Now when you save a view, display extenders are validated like other views plugins, handlers, relationships, etc. You can add your own validation using the validate() method of your display extender plugin.
Example:
/**
* {@inheritdoc}
*/
public function validate() {
$errors = parent::validate();
// Check the empty value.
if (empty($this->options['not_empty_value'])) {
$errors[] = $this->t('The value is empty.');
}
return $errors;
}
Impacts:
Module developers