You are here

public function DataPolicy::isPublished in Data Policy 8

Returns the Data policy published status indicator.

Unpublished Data policy are only visible to restricted users.

Return value

bool TRUE if the Data policy is published.

Overrides DataPolicyInterface::isPublished

File

src/Entity/DataPolicy.php, line 163

Class

DataPolicy
Defines the Data policy entity.

Namespace

Drupal\data_policy\Entity

Code

public function isPublished() {
  return (bool) $this
    ->getEntityKey('status');
}