You are here

public function WebformSubmissionController::accessDeniedTitle in Webform 8.5

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

Returns a webform 's access denied title.

Parameters

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

Return value

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

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

File

src/Controller/WebformSubmissionController.php, line 209

Class

WebformSubmissionController
Provides route responses for Webform submissions.

Namespace

Drupal\webform\Controller

Code

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