function 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;
}