public function UserConsent::setRevision in Data Policy 8
Sets the Data policy revision author.
Parameters
\Drupal\data_policy\Entity\DataPolicyInterface $data_policy: The data policy entity object.
Return value
\Drupal\data_policy\Entity\UserConsentInterface The called User consent entity.
Overrides UserConsentInterface::setRevision
File
- src/
Entity/ UserConsent.php, line 124
Class
- UserConsent
- Defines the User consent entity.
Namespace
Drupal\data_policy\EntityCode
public function setRevision(DataPolicyInterface $data_policy) {
$this
->set('data_policy_revision_id', $data_policy
->getRevisionId());
return $this;
}