Skip to content
Snippets Groups Projects
Commit cafd24a9 authored by Sergey Krasulevskiy's avatar Sergey Krasulevskiy Committed by Max
Browse files

Issue #2932933 by skrasulevskiy: Widget engine php error: ArgumentCountError:...

Issue #2932933 by skrasulevskiy: Widget engine php error: ArgumentCountError: Too few arguments to function Drupal\Core\Render\Element\StatusMessages::renderMessages()
parent 06e68ef7
Branches
Tags 8.x-1.1
No related merge requests found
......@@ -95,7 +95,7 @@ class WidgetEntityBrowserController extends ControllerBase {
$response = AjaxResponse::create()->addCommand(new OpenDialogCommand('#' . $entity->getEntityTypeId() . '-' . $entity->id() . '-edit-dialog', $title, $form, $options));
if ($form_state->getErrors()) {
$response->addCommand(
new PrependCommand('#' . $entity->getEntityTypeId() . '-' . $entity->id() . '-edit-dialog', StatusMessages::renderMessages())
new PrependCommand('#' . $entity->getEntityTypeId() . '-' . $entity->id() . '-edit-dialog', StatusMessages::renderMessages('error'))
);
}
return $response;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment