You are here

public function PagePolicy::title in General Data Protection Regulation Compliance 8

Page Title.

1 string reference to 'PagePolicy::title'
gdpr_compliance.routing.yml in ./gdpr_compliance.routing.yml
gdpr_compliance.routing.yml

File

src/Controller/PagePolicy.php, line 74

Class

PagePolicy
Controller routines for page routes.

Namespace

Drupal\gdpr_compliance\Controller

Code

public function title() {
  $title = $this
    ->t('Privacy and Cookie policy');
  $titles = [
    'en' => $title,
    'de' => $title,
    'ru' => $this
      ->t('Agreement on the use of personal data'),
  ];
  $title = $titles[$this->lang];
  return $title;
}