You are here

public function DomainEntitySettings::getTitle in Domain Access Entity 8

The _title_callback for the page of the form.

Parameters

string $entity_type_id: The entity type ID.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The page title.

1 string reference to 'DomainEntitySettings::getTitle'
domain_entity.routing.yml in ./domain_entity.routing.yml
domain_entity.routing.yml

File

src/Form/DomainEntitySettings.php, line 98

Class

DomainEntitySettings
Provides a form to configure domain fields mappings.

Namespace

Drupal\domain_entity\Form

Code

public function getTitle($entity_type_id = NULL) {
  $entity_type = $this->entityTypeManager
    ->getDefinition($entity_type_id, FALSE);
  return $this
    ->t('Activate domain access on @entity_label (@entity_name)', [
    '@entity_label' => $entity_type
      ->getLabel(),
    '@entity_name' => $entity_type_id,
  ]);
}