public function EntityRevisionConverter::__construct in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 src/ParamConverter/EntityRevisionConverter.php \Drupal\workbench_moderation\ParamConverter\EntityRevisionConverter::__construct()
EntityRevisionConverter constructor.
@todo: If the parent class is ever cleaned up to use EntityTypeManager instead of Entity manager, this method will also need to be adjusted.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_type_manager: The entity manager, needed by the parent class.
\Drupal\workbench_moderation\ModerationInformationInterface $moderation_info: The moderation info utility service.
Overrides EntityConverter::__construct
File
- src/
ParamConverter/ EntityRevisionConverter.php, line 33
Class
- EntityRevisionConverter
- Defines a class for making sure the edit-route loads the current draft.
Namespace
Drupal\workbench_moderation\ParamConverterCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ModerationInformationInterface $moderation_info) {
parent::__construct($entity_type_manager);
$this->moderationInformation = $moderation_info;
}