public function EntityActionDeriverBase::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityActionDeriverBase.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityActionDeriverBase::__construct()
- 9 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityActionDeriverBase.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityActionDeriverBase::__construct()
Constructs a new EntityActionDeriverBase object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
- core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ Derivative/ EntityActionDeriverBase.php, line 35
Class
- EntityActionDeriverBase
- Provides a base action for each entity type with specific interfaces.
Namespace
Drupal\Core\Action\Plugin\Action\DerivativeCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
}