public function WebformSubmissionController::accessDeniedTitle in Webform 8.5
Same name and namespace in other branches
- 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'
File
- src/
Controller/ WebformSubmissionController.php, line 209
Class
- WebformSubmissionController
- Provides route responses for Webform submissions.
Namespace
Drupal\webform\ControllerCode
public function accessDeniedTitle(WebformInterface $webform) {
return $webform
->getSetting('submission_access_denied_title') ?: $this
->t('Access denied');
}