You are here

public function PublishContentAccess::accessUnpublishAny in Publish Content 8

Access unpublish any content.

1 call to PublishContentAccess::accessUnpublishAny()
PublishContentAccess::access in src/Access/PublishContentAccess.php

File

src/Access/PublishContentAccess.php, line 89

Class

PublishContentAccess
Access class checking the permissions for publishing and unpublishing.

Namespace

Drupal\publishcontent\Access

Code

public function accessUnpublishAny() {
  return $this->account
    ->hasPermission('unpublish any content');
}