public EntityRevisionConverter::__construct(EntityManagerInterface $entity_manager, ModerationInformationInterface $moderation_info)
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_manager: The entity manager, needed by the parent class.
\Drupal\content_moderation\ModerationInformationInterface $moderation_info: The moderation info utility service.
Overrides EntityConverter::__construct
File
- core/modules/content_moderation/src/ParamConverter/EntityRevisionConverter.php, line 35
Class
- EntityRevisionConverter
- Defines a class for making sure the edit-route loads the current draft.
Namespace
Drupal\content_moderation\ParamConverter
Code
public function __construct(EntityManagerInterface $entity_manager, ModerationInformationInterface $moderation_info) { parent::__construct($entity_manager); $this->moderationInformation = $moderation_info; }
Please login to continue.