You are here

public function WebformEntityController::accessDenied in Webform 8.5

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

Returns a webform's access denied page.

Parameters

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

Return value

array A renderable array containing an access denied page.

1 string reference to 'WebformEntityController::accessDenied'
webform.routing.yml in ./webform.routing.yml
webform.routing.yml

File

src/Controller/WebformEntityController.php, line 330

Class

WebformEntityController
Provides route responses for Webform entity.

Namespace

Drupal\webform\Controller

Code

public function accessDenied(WebformInterface $webform) {
  return WebformElement::buildAccessDenied($webform);
}