/** * Overrides \Drupal\views\Plugin\views\filter\InOperator::init(). */ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) { parent::init($view, $display, $options); $this->entityTypeId = $this->getEntityType(); $this->entityType = \Drupal::entityManager()->getDefinition($this->entityTypeId); $this->real_field = $this->entityType->getKey('bundle'); }
/** * {@inheritdoc} */ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) { parent::init($view, $display, $options); $this->helper = new ManyToOneHelper($this); }