You are here

public function LatestRevisionCheck::__construct in Access unpublished 8

LatestRevisionCheck constructor.

Parameters

\Drupal\Core\Routing\Access\AccessInterface $access_check: Latest revision access check to decorate.

Overrides LatestRevisionCheck::__construct

File

src/Access/LatestRevisionCheck.php, line 31

Class

LatestRevisionCheck
Access check for the entity moderation tab which supports access_unpublished.

Namespace

Drupal\access_unpublished\Access

Code

public function __construct(AccessInterface $access_check) {
  $this->accessCheck = $access_check;
}