public function Bundle::init

Overrides \Drupal\views\Plugin\views\filter\InOperator::init().

Overrides InOperator::init

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Bundle.php, line 40
Definition of \Drupal\views\Plugin\views\filter\Bundle.

Class

Bundle
Filter class which allows filtering by entity bundles.

Namespace

Drupal\views\Plugin\views\filter

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->entityType = $this
    ->getEntityType();
  $this->entityInfo = entity_get_info($this->entityType);
  $this->real_field = $this->entityInfo['entity_keys']['bundle'];
}