function LatestRevisionCheck::__construct

Same name in other branches
  1. 9 core/modules/content_moderation/src/Access/LatestRevisionCheck.php \Drupal\content_moderation\Access\LatestRevisionCheck::__construct()
  2. 10 core/modules/content_moderation/src/Access/LatestRevisionCheck.php \Drupal\content_moderation\Access\LatestRevisionCheck::__construct()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.