public function TokenCustomController::getAddFormTitle in Custom Tokens 8
Provides the page title for this controller.
Parameters
\Drupal\token_custom\TokenCustomTypeInterface $token_custom_type: The custom token type being added.
Return value
string The page title.
File
- src/
Controller/ TokenCustomController.php, line 114
Class
- TokenCustomController
- Controller for token_custom entity.
Namespace
Drupal\token_custom\ControllerCode
public function getAddFormTitle(TokenCustomTypeInterface $token_custom_type) {
return $this
->t('Add %type custom token', [
'%type' => $token_custom_type
->label(),
]);
}