function FilterPluginBase::validate
Overrides HandlerBase::validate
2 methods override FilterPluginBase::validate()
- Combine::validate in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php - Validate that the plugin is correct and can be saved.
- InOperator::validate in core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php - Validate that the plugin is correct and can be saved.
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php, line 1666
Class
- FilterPluginBase
- Base class for Views filters handler plugins.
Namespace
Drupal\views\Plugin\views\filterCode
public function validate() {
if (!empty($this->options['exposed']) && $error = $this->validateIdentifier($this->options['expose']['identifier'])) {
return [
$error,
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.