public function PublishContentAccess::accessPublishEditableType in Publish Content 8
Access publish content of specified which you have access to edit for.
1 call to PublishContentAccess::accessPublishEditableType()
- PublishContentAccess::access in src/
Access/ PublishContentAccess.php
File
- src/
Access/ PublishContentAccess.php, line 138
Class
- PublishContentAccess
- Access class checking the permissions for publishing and unpublishing.
Namespace
Drupal\publishcontent\AccessCode
public function accessPublishEditableType() {
return $this
->checkPermission(Perm::PUBLISH_EDITABLE_TYPE) && $this->node
->access('update', $this->account);
}