You are here

public function EREFNodeTitles::validate in Entity Reference Exposed Filters 8

Validate that the plugin is correct and can be saved.

Return value

An array of error strings to tell the user what is wrong with this plugin.

Overrides InOperator::validate

File

src/Plugin/views/filter/EREFNodeTitles.php, line 132

Class

EREFNodeTitles
Filters by given list of related content title options.

Namespace

Drupal\entity_reference_exposed_filters\Plugin\views\filter

Code

public function validate() {
  if (empty($this->getRelationships)) {
    $this
      ->broken();
  }
}