You are here

public function ListItemProcessor::__construct in Facets 8

Constructs a Drupal\Component\Plugin\PluginBase 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\Config\ConfigManagerInterface $config_manager: The config manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

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

Overrides PluginBase::__construct

File

src/Plugin/facets/processor/ListItemProcessor.php, line 70

Class

ListItemProcessor
Provides a processor that transforms the results to show the list item label.

Namespace

Drupal\facets\Plugin\facets\processor

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigManagerInterface $config_manager, EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configManager = $config_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
}