Loading CHANGELOG.txt +1 −0 Original line number Diff line number Diff line Blazy 8.x-2.0-dev, 2021-12-15 ----------------------------- - Issue #3243817 by lolgm: Added CSS Admin disable option in Layout Builder. - Issue #3254222 by Jingting, wells: ARIA dialog and alertdialog nodes should have an accessible name. - Issue #3241415 by nanobyt3, codesmith: Respect the image title from a Media Loading src/BlazyManagerBase.php +8 −0 Original line number Diff line number Diff line Loading @@ -546,4 +546,12 @@ abstract class BlazyManagerBase implements BlazyManagerInterface { return []; } /** * {@inheritdoc} */ public function getRouteName() { $route_match = Blazy::routeMatch(); return isset($route_match) ? Blazy::routeMatch()->getRouteName() : ''; } } src/BlazyManagerInterface.php +9 −0 Original line number Diff line number Diff line Loading @@ -74,4 +74,13 @@ interface BlazyManagerInterface { */ public function isBlazy(array &$settings, array $item = []); /** * Returns the route name manager. * * @return string * Returns the name of the current route. * If it is not possible to obtain it will return an empty string. */ public function getRouteName(); } src/Form/BlazyAdminBase.php +11 −4 Original line number Diff line number Diff line Loading @@ -544,6 +544,13 @@ abstract class BlazyAdminBase implements BlazyAdminInterface { $admin_css = $admin_css ?: $this->blazyManager->configLoad('admin_css', 'blazy.settings'); $excludes = ['details', 'fieldset', 'hidden', 'markup', 'item', 'table']; $selects = ['cache', 'optionset', 'view_mode']; $current_route_name = $this->blazyManager->getRouteName(); // Disable the admin css in the layout builder, to // avoid conflicts with the active frontend theme. if ($admin_css && !empty($current_route_name)) { $admin_css = !str_starts_with($current_route_name, "layout_builder."); } $this->blazyManager->getModuleHandler()->alter('blazy_form_element', $form, $definition); Loading Loading
CHANGELOG.txt +1 −0 Original line number Diff line number Diff line Blazy 8.x-2.0-dev, 2021-12-15 ----------------------------- - Issue #3243817 by lolgm: Added CSS Admin disable option in Layout Builder. - Issue #3254222 by Jingting, wells: ARIA dialog and alertdialog nodes should have an accessible name. - Issue #3241415 by nanobyt3, codesmith: Respect the image title from a Media Loading
src/BlazyManagerBase.php +8 −0 Original line number Diff line number Diff line Loading @@ -546,4 +546,12 @@ abstract class BlazyManagerBase implements BlazyManagerInterface { return []; } /** * {@inheritdoc} */ public function getRouteName() { $route_match = Blazy::routeMatch(); return isset($route_match) ? Blazy::routeMatch()->getRouteName() : ''; } }
src/BlazyManagerInterface.php +9 −0 Original line number Diff line number Diff line Loading @@ -74,4 +74,13 @@ interface BlazyManagerInterface { */ public function isBlazy(array &$settings, array $item = []); /** * Returns the route name manager. * * @return string * Returns the name of the current route. * If it is not possible to obtain it will return an empty string. */ public function getRouteName(); }
src/Form/BlazyAdminBase.php +11 −4 Original line number Diff line number Diff line Loading @@ -544,6 +544,13 @@ abstract class BlazyAdminBase implements BlazyAdminInterface { $admin_css = $admin_css ?: $this->blazyManager->configLoad('admin_css', 'blazy.settings'); $excludes = ['details', 'fieldset', 'hidden', 'markup', 'item', 'table']; $selects = ['cache', 'optionset', 'view_mode']; $current_route_name = $this->blazyManager->getRouteName(); // Disable the admin css in the layout builder, to // avoid conflicts with the active frontend theme. if ($admin_css && !empty($current_route_name)) { $admin_css = !str_starts_with($current_route_name, "layout_builder."); } $this->blazyManager->getModuleHandler()->alter('blazy_form_element', $form, $definition); Loading