You are here

public function PageManagerSectionStorage::__construct in Page Manager 8.4

PageManagerSectionStorage constructor.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

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 type manager.

\Drupal\layout_builder\Entity\SampleEntityGeneratorInterface $sample_entity_generator: The sample entity generator.

\Drupal\Core\TempStore\SharedTempStoreFactory $tempstore: The tempstore factory.

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

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/SectionStorage/PageManagerSectionStorage.php, line 83

Class

PageManagerSectionStorage
Defines the 'page_manager' section storage type.

Namespace

Drupal\page_manager\Plugin\SectionStorage

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, SampleEntityGeneratorInterface $sample_entity_generator, SharedTempStoreFactory $tempstore, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->sampleEntityGenerator = $sample_entity_generator;
  $this->tempstore = $tempstore;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
}