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