You are here

protected function WebformDefaultExceptionHtmlSubscriber::getSystemSite403Path in Webform 6.x

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

Get 403 path from system.site config.

Return value

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

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

File

src/EventSubscriber/WebformDefaultExceptionHtmlSubscriber.php, line 278

Class

WebformDefaultExceptionHtmlSubscriber
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';
}