public function MaestroEngineTemplateFilter::init in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Plugin/views/filter/MaestroEngineTemplateFilter.php \Drupal\maestro\Plugin\views\filter\MaestroEngineTemplateFilter::init()
Overrides \Drupal\views\Plugin\views\HandlerBase::init().
Provide some extra help to get the operator/value easier to use.
This likely has to be overridden by filters which are more complex than simple operator/value.
Overrides InOperator::init
File
- src/
Plugin/ views/ filter/ MaestroEngineTemplateFilter.php, line 22
Class
- MaestroEngineTemplateFilter
- Filter for Maestro Template names.
Namespace
Drupal\maestro\Plugin\views\filterCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
$this->valueTitle = $this
->t('Templates to Filter On');
$this->definition['options callback'] = [
$this,
'generateTemplateOptions',
];
}