You are here

public function ContextualBundle::__construct in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/views/filter/ContextualBundle.php \Drupal\entity_browser\Plugin\views\filter\ContextualBundle::__construct()

Constructs a Bundle object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: A request stack symfony instance.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info_service: The bundle info service.

Overrides Bundle::__construct

File

src/Plugin/views/filter/ContextualBundle.php, line 69

Class

ContextualBundle
Filter class which allows filtering by entity bundles.

Namespace

Drupal\entity_browser\Plugin\views\filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, RequestStack $request_stack, KeyValueStoreExpirableInterface $selection_storage, EntityTypeBundleInfoInterface $bundle_info_service) {
  HandlerBase::__construct($configuration, $plugin_id, $plugin_definition);
  $this->requestStack = $request_stack;
  $this->entityTypeManager = $entity_type_manager;
  $this->selectionStorage = $selection_storage;
  $this->is_handler = TRUE;
  $this->bundleInfoService = $bundle_info_service;
}