You are here

public function AbstractOptionalModule::__construct in Thunder 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Thunder/OptionalModule/AbstractOptionalModule.php \Drupal\thunder\Plugin\Thunder\OptionalModule\AbstractOptionalModule::__construct()
  2. 8.4 src/Plugin/Thunder/OptionalModule/AbstractOptionalModule.php \Drupal\thunder\Plugin\Thunder\OptionalModule\AbstractOptionalModule::__construct()

Constructs display plugin.

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 $entityTypeManager: The entity manager.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

Overrides PluginBase::__construct

File

src/Plugin/Thunder/OptionalModule/AbstractOptionalModule.php, line 45

Class

AbstractOptionalModule
Class AbstractOptionalModule.

Namespace

Drupal\thunder\Plugin\Thunder\OptionalModule

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
  $this->configFactory = $configFactory;
}