Skip to content
Snippets Groups Projects
Commit 01d32210 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2336483 by er.pushpinderrana | tim.plunkett: Replace Views $form_state...

Issue #2336483 by er.pushpinderrana | tim.plunkett: Replace Views $form_state usage of '#page_title' with 'page_title'.
parent c0a7453a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -88,7 +88,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
if (isset($bases[$view->get('base_table')])) {
$page_title .= ' (' . $bases[$view->get('base_table')]['title'] . ')';
}
$form_state->set('#page_title', $page_title);
$form_state->set('page_title', $page_title);
$view->cacheSet();
}
......
......@@ -164,7 +164,7 @@ public function getForm(ViewStorageInterface $view, $display_id, $js) {
$response->addCommand(new CloseModalDialogCommand());
$response->addCommand(new Ajax\ShowButtonsCommand(!empty($view->changed)));
$response->addCommand(new Ajax\TriggerPreviewCommand());
if ($page_title = $form_state->get('#page_title')) {
if ($page_title = $form_state->get('page_title')) {
$response->addCommand(new Ajax\ReplaceTitleCommand($page_title));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment