You are here

public function DataPolicy::getName in Data Policy 8

Gets the Data policy name.

Return value

string Name of the Data policy.

Overrides DataPolicyInterface::getName

File

src/Entity/DataPolicy.php, line 103

Class

DataPolicy
Defines the Data policy entity.

Namespace

Drupal\data_policy\Entity

Code

public function getName() {
  return $this
    ->get('name')->value;
}