public function DataPolicy::setName in Data Policy 8
Sets the Data policy name.
Parameters
string $name: The Data policy name.
Return value
\Drupal\data_policy\Entity\DataPolicyInterface The called Data policy entity.
Overrides DataPolicyInterface::setName
File
- src/
Entity/ DataPolicy.php, line 110
Class
- DataPolicy
- Defines the Data policy entity.
Namespace
Drupal\data_policy\EntityCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}