public function DashboardSectionStorage::__construct in Dashboards with Layout Builder 8
Same name and namespace in other branches
- 2.0.x src/Plugin/SectionStorage/DashboardSectionStorage.php \Drupal\dashboards\Plugin\SectionStorage\DashboardSectionStorage::__construct()
Overrides \Drupal\Component\Plugin\PluginBase::__construct().
Overrides the construction of context aware plugins to allow for unvalidated constructor based injection of contexts.
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.
Overrides ContextAwarePluginBase::__construct
1 call to DashboardSectionStorage::__construct()
- UserDashboardSectionStorage::__construct in src/
Plugin/ SectionStorage/ UserDashboardSectionStorage.php - Overrides \Drupal\Component\Plugin\PluginBase::__construct().
1 method overrides DashboardSectionStorage::__construct()
- UserDashboardSectionStorage::__construct in src/
Plugin/ SectionStorage/ UserDashboardSectionStorage.php - Overrides \Drupal\Component\Plugin\PluginBase::__construct().
File
- src/
Plugin/ SectionStorage/ DashboardSectionStorage.php, line 83
Class
- DashboardSectionStorage
- Dashboard section storage.
Namespace
Drupal\dashboards\Plugin\SectionStorageCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_bundle_info, SampleEntityGeneratorInterface $sample_entity_generator, AccountInterface $current_user) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_type_manager;
$this->entityBundleInfo = $entity_bundle_info;
$this->sampleEntityGenerator = $sample_entity_generator;
$this->account = $current_user;
}