public function WebformEntityController::accessDenied in Webform 8.5
Same name and namespace in other branches
- 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'
File
- src/
Controller/ WebformEntityController.php, line 330
Class
- WebformEntityController
- Provides route responses for Webform entity.
Namespace
Drupal\webform\ControllerCode
public function accessDenied(WebformInterface $webform) {
return WebformElement::buildAccessDenied($webform);
}