/** * {@inheritdoc} * * @param \Drupal\address\Entity\ZoneInterface $parent_zone * The parent zone. */ public function __construct(PluginManagerInterface $manager, array $configurations, ZoneInterface $parent_zone) { parent::__construct($manager, $configurations); $this->parentZone = $parent_zone; }
/** * Constructs a DisplayPluginCollection object. * * @param \Drupal\views\ViewExecutable * The view which has this displays attached. * @param \Drupal\Component\Plugin\PluginManagerInterface $manager * The manager to be used for instantiating plugins. */ public function __construct(ViewExecutable $view, PluginManagerInterface $manager) { parent::__construct($manager, $view->storage->get('display')); $this->view = $view; $this->initializePlugin('default'); }