public function EntityTypeInfo::__construct in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 src/EntityTypeInfo.php \Drupal\workbench_moderation\EntityTypeInfo::__construct()
EntityTypeInfo constructor.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service. for form alters.
\Drupal\workbench_moderation\ModerationInformationInterface $moderation_information: The moderation information service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.
File
- src/
EntityTypeInfo.php, line 66
Class
- EntityTypeInfo
- Service class for manipulating entity type information.
Namespace
Drupal\workbench_moderationCode
public function __construct(TranslationInterface $translation, ModerationInformationInterface $moderation_information, EntityTypeManagerInterface $entity_type_manager) {
$this->stringTranslation = $translation;
$this->moderationInfo = $moderation_information;
$this->entityTypeManager = $entity_type_manager;
}