Skip to content
Snippets Groups Projects
Commit ecf074d6 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3389786: Fix Add or select media with a logic for the Media Library Theme Negotiator

parent 96086c41
Branches
Tags 10.1.0-beta5
No related merge requests found
......@@ -75,7 +75,7 @@ class VarbaseLayoutBuilderThemeNegotiator extends AjaxBasePageNegotiator {
if (isset($use_claro) && $use_claro == 1) {
$route_name = $route_match->getRouteName();
if (isset($route_name) && str_contains($route_name, 'layout_builder') && !str_contains($route_name, 'dashboards')) {
if (isset($route_name) && _is_layout_builder_route() && !str_contains($route_name, 'dashboards')) {
if ($this->themeHandler->themeExists('gin') || $this->themeHandler->themeExists('claro')) {
return TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment