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