You are here

public function SearchApiStatsBlock::__construct in Search API Stats 8

Constructs an EntityDeriver object.

Parameters

string $base_plugin_id: The base plugin ID.

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

File

modules/search_api_stats_block/src/Plugin/Derivative/SearchApiStatsBlock.php, line 63

Class

SearchApiStatsBlock
Provides block plugin definitions for mymodule blocks.

Namespace

Drupal\search_api_stats_block\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityTypeManagerInterface $entity_manager) {
  $this->basePluginId = $base_plugin_id;
  $this->entityTypeManager = $entity_manager;
}