You are here

public function ConsentAgreement::getTitle in General Data Protection Regulation 8

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

Return the title.

Return value

string The title.

1 call to ConsentAgreement::getTitle()
ConsentAgreement::__toString in modules/gdpr_consent/src/Entity/ConsentAgreement.php

File

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

Class

ConsentAgreement
Defines the ConsentAgreement entity.

Namespace

Drupal\gdpr_consent\Entity

Code

public function getTitle() {
  return (string) $this
    ->get('title')->value;
}