public function DataPolicyInterface::setPublished in Data Policy 8
Sets the published status of a Data policy.
Parameters
bool $published: TRUE to set this Data policy to published, FALSE to set it to unpublished.
Return value
\Drupal\data_policy\Entity\DataPolicyInterface The called Data policy entity.
1 method overrides DataPolicyInterface::setPublished()
- DataPolicy::setPublished in src/
Entity/ DataPolicy.php - Sets the published status of a Data policy.
File
- src/
Entity/ DataPolicyInterface.php, line 75
Class
- DataPolicyInterface
- Provides an interface for defining Data policy entities.
Namespace
Drupal\data_policy\EntityCode
public function setPublished($published);