function DynamicLocalTasks::__construct
Same name in this branch
- 11.x core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\content_moderation\Plugin\Derivative\DynamicLocalTasks::__construct()
Same name in other branches
- 9 core/modules/media/src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\media\Plugin\Derivative\DynamicLocalTasks::__construct()
- 9 core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\content_moderation\Plugin\Derivative\DynamicLocalTasks::__construct()
- 8.9.x core/modules/media/src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\media\Plugin\Derivative\DynamicLocalTasks::__construct()
- 8.9.x core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\content_moderation\Plugin\Derivative\DynamicLocalTasks::__construct()
- 10 core/modules/media/src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\media\Plugin\Derivative\DynamicLocalTasks::__construct()
- 10 core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\content_moderation\Plugin\Derivative\DynamicLocalTasks::__construct()
Creates a DynamicLocalTasks object.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
-
core/
modules/ media/ src/ Plugin/ Derivative/ DynamicLocalTasks.php, line 44
Class
- DynamicLocalTasks
- Generates media-related local tasks.
Namespace
Drupal\media\Plugin\DerivativeCode
public function __construct(TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
$this->stringTranslation = $string_translation;
$this->entityTypeManager = $entity_type_manager;
$this->config = $config_factory->get('media.settings');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.