You are here

public function WebformEntityController::accessDeniedTitle in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Controller/WebformEntityController.php \Drupal\webform\Controller\WebformEntityController::accessDeniedTitle()

Returns a webform's access denied title.

Parameters

\Drupal\webform\WebformInterface $webform: The webform.

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup The webform submissions's access denied title.

1 string reference to 'WebformEntityController::accessDeniedTitle'
webform.routing.yml in ./webform.routing.yml
webform.routing.yml

File

src/Controller/WebformEntityController.php, line 343

Class

WebformEntityController
Provides route responses for Webform entity.

Namespace

Drupal\webform\Controller

Code

public function accessDeniedTitle(WebformInterface $webform) {
  return $webform
    ->getSetting('form_access_denied_title') ?: $this
    ->t('Access denied');
}