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