You are here

public function SiteSettingEntityAddController::getAddFormTitle in Site Settings and Labels 8

Provides the page title for this controller.

Parameters

\Drupal\Core\Entity\EntityInterface $site_setting_entity_type: The custom bundle/type being added.

Return value

string The page title.

File

src/Controller/SiteSettingEntityAddController.php, line 112

Class

SiteSettingEntityAddController
Class SiteSettingEntityAddController.

Namespace

Drupal\site_settings\Controller

Code

public function getAddFormTitle(EntityInterface $site_setting_entity_type) {
  return $this
    ->t('@label', [
    '@label' => $site_setting_entity_type
      ->label(),
  ]);
}