You are here

public function LatestRevisionCheck::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/src/Access/LatestRevisionCheck.php \Drupal\content_moderation\Access\LatestRevisionCheck::__construct()
  2. 9 core/modules/content_moderation/src/Access/LatestRevisionCheck.php \Drupal\content_moderation\Access\LatestRevisionCheck::__construct()

Constructs a new LatestRevisionCheck.

Parameters

\Drupal\content_moderation\ModerationInformationInterface $moderation_information: The moderation information service.

File

core/modules/content_moderation/src/Access/LatestRevisionCheck.php, line 33

Class

LatestRevisionCheck
Access check for the entity moderation tab.

Namespace

Drupal\content_moderation\Access

Code

public function __construct(ModerationInformationInterface $moderation_information) {
  $this->moderationInfo = $moderation_information;
}