You are here

public function ConsentAgreement::setName in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::setName()
  2. 8 modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::setName()

Sets the Consent Agreement name.

Parameters

string $name: The Consent Agreement name.

Return value

\Drupal\gdpr_consent\Entity\ConsentAgreementInterface The called Consent Agreement entity.

Overrides ConsentAgreementInterface::setName

File

modules/gdpr_consent/src/Entity/ConsentAgreement.php, line 144

Class

ConsentAgreement
Defines the ConsentAgreement entity.

Namespace

Drupal\gdpr_consent\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}