You are here

public function FacetsBlock::__construct in Facets Block 8

FacetsBlock constructor.

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\facets\FacetManager\DefaultFacetManager $facets_manager: The Facets manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Block\BlockManagerInterface $plugin_manager_block: The Plugin manager block.

\Drupal\Core\Session\AccountProxyInterface $current_user: Current user.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/FacetsBlock.php, line 75

Class

FacetsBlock
Provides a 'Facets Block' block.

Namespace

Drupal\facets_block\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, DefaultFacetManager $facets_manager, ModuleHandlerInterface $module_handler, BlockManagerInterface $plugin_manager_block, AccountProxyInterface $current_user) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->facetsManager = $facets_manager;
  $this->moduleHandler = $module_handler;
  $this->pluginManagerBlock = $plugin_manager_block;
  $this->currentUser = $current_user;
}