You are here

public function BatEventHandlerBlockingFilter::init in Booking and Availability Management Tools for Drupal 8

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 BooleanOperator::init

File

modules/bat_event/src/Plugin/views/filter/BatEventHandlerBlockingFilter.php, line 36

Class

BatEventHandlerBlockingFilter
Plugin annotation @ViewsFilter("bat_event_handler_blocking_filter");

Namespace

Drupal\bat_event\Plugin\views\filter

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->value_value = $this
    ->t('State');
}