public function UserConsent::isPublished in Data Policy 8
Returns the User consent published status indicator.
Unpublished User consent are only visible to restricted users.
Return value
bool TRUE if the User consent is published.
Overrides UserConsentInterface::isPublished
File
- src/
Entity/ UserConsent.php, line 109
Class
- UserConsent
- Defines the User consent entity.
Namespace
Drupal\data_policy\EntityCode
public function isPublished() {
return (bool) $this
->getEntityKey('status');
}