PropertyTaxonomyVocabulary.php in EntityFieldQuery Views Backend 8
File
src/Plugin/views/filter/PropertyTaxonomyVocabulary.php
View source
<?php
namespace Drupal\efq_views\Plugin\views\filter;
use Drupal\Component\Utility\String;
use Drupal\taxonomy\Entity\Vocabulary;
class PropertyTaxonomyVocabulary extends InOperator {
public function getValueOptions() {
$vocabularies = Vocabulary::loadMultiple();
$options = array();
foreach ($vocabularies as $vocabulary) {
$options[$vocabulary->vid] = String::checkPlain($vocabulary->name);
}
$this->valueOptions = $options;
return $options;
}
}