You are here

public function Flags::init in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 modules/cms_content_sync_views/src/Plugin/views/filter/Flags.php \Drupal\cms_content_sync_views\Plugin\views\filter\Flags::init()
  2. 2.1.x modules/cms_content_sync_views/src/Plugin/views/filter/Flags.php \Drupal\cms_content_sync_views\Plugin\views\filter\Flags::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

modules/cms_content_sync_views/src/Plugin/views/filter/Flags.php, line 29

Class

Flags
Provides a view filter to filter on the sync state entity.

Namespace

Drupal\cms_content_sync_views\Plugin\views\filter

Code

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