public function UserConsent::setName in Data Policy 8
Sets the User consent name.
Parameters
string $name: The User consent name.
Return value
\Drupal\data_policy\Entity\UserConsentInterface The called User consent entity.
Overrides UserConsentInterface::setName
File
- src/
Entity/ UserConsent.php, line 57
Class
- UserConsent
- Defines the User consent entity.
Namespace
Drupal\data_policy\EntityCode
public function setName($name) {
return $this;
}