public function PublishContentAccess::accessUnpublishOwnType in Publish Content 8
Access unpublish own content of specified type (bundle).
1 call to PublishContentAccess::accessUnpublishOwnType()
- PublishContentAccess::access in src/
Access/ PublishContentAccess.php
File
- src/
Access/ PublishContentAccess.php, line 131
Class
- PublishContentAccess
- Access class checking the permissions for publishing and unpublishing.
Namespace
Drupal\publishcontent\AccessCode
public function accessUnpublishOwnType() {
return $this
->checkPermission(Perm::UNPUBLISH_OWN_TYPE) && $this->node
->getOwnerId() == $this->account
->id();
}