public function ConfigPagesController::getAddFormTitle in Config Pages 8.2
Same name and namespace in other branches
- 8.3 src/Controller/ConfigPagesController.php \Drupal\config_pages\Controller\ConfigPagesController::getAddFormTitle()
- 8 src/Controller/ConfigPagesController.php \Drupal\config_pages\Controller\ConfigPagesController::getAddFormTitle()
Provides the page title for this controller.
Parameters
\Drupal\config_pages\ConfigPagesTypeInterface $config_pages_type: The config page type being added.
Return value
string The page title.
1 string reference to 'ConfigPagesController::getAddFormTitle'
File
- src/
Controller/ ConfigPagesController.php, line 109
Class
- ConfigPagesController
- Class controller for ConfigPage entity..
Namespace
Drupal\config_pages\ControllerCode
public function getAddFormTitle(ConfigPagesTypeInterface $config_pages_type) {
$config_pages_types = ConfigPagesType::loadMultiple();
$config_pages_type = $config_pages_types[$config_pages_type
->id()];
return $this
->t('Add %type config page', [
'%type' => $config_pages_type
->label(),
]);
}