You are here

protected function WebformExceptionHtmlSubscriber::getSystemSite403Path in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/EventSubscriber/WebformExceptionHtmlSubscriber.php \Drupal\webform\EventSubscriber\WebformExceptionHtmlSubscriber::getSystemSite403Path()

Get 403 path from system.site config.

Return value

string The custom 403 path or Drupal's default 403 path.

1 call to WebformExceptionHtmlSubscriber::getSystemSite403Path()
WebformExceptionHtmlSubscriber::on403RedirectEntityAccess in src/EventSubscriber/WebformExceptionHtmlSubscriber.php
Redirect to user login when access is denied for webform or submission.

File

src/EventSubscriber/WebformExceptionHtmlSubscriber.php, line 278

Class

WebformExceptionHtmlSubscriber
Event subscriber to redirect to login form when webform settings instruct to.

Namespace

Drupal\webform\EventSubscriber

Code

protected function getSystemSite403Path() {
  return $this->configFactory
    ->get('system.site')
    ->get('page.403') ?: '/system/403';
}