Commit 30ed0ed9 authored by Liam Morland's avatar Liam Morland Committed by Jacob Rockowitz
Browse files

Issue #3247771 by Liam Morland, jrockowitz, paulocs: Allow override of "access denied" message

parent 13802de9
Loading
Loading
Loading
Loading
+1 −1
Changes for includes/webform.theme.inc: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ function webform_theme() {
      'render element' => 'element',
    ],
    'webform_access_denied' => [
      'variables' => ['message' => '', 'attributes' => []],
      'variables' => ['message' => '', 'attributes' => [], 'webform' => NULL],
    ],

    'webform_handler_action_summary' => [
+1 −0
Changes for src/Element/Webform.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -141,6 +141,7 @@ class Webform extends RenderElement {
      '#theme' => 'webform_access_denied',
      '#attributes' => $attributes,
      '#message' => WebformHtmlEditor::checkMarkup($message),
      '#webform' => $webform,
    ];

    return static::addCacheableDependency($build, $webform);