Skip to content
Snippets Groups Projects
Commit 0532c7aa authored by Gaus Surahman's avatar Gaus Surahman
Browse files

Fixed for CS

parent a817063e
No related branches found
No related tags found
No related merge requests found
Pipeline #289453 passed with warnings
......@@ -59,7 +59,11 @@ class BlazyConfigForm extends BlazyConfigFormBase {
$svg_sanitizer = 'https://github.com/darylldoyle/svg-sanitizer';
$class = $exists ? 'info' : 'warning';
$hints = [];
$help = '/admin/help/blazy_ui';
if ($this->manager->moduleExists('help')) {
$help = Url::fromUri('internal:/admin/help/blazy_ui')->toString();
}
// Adapted from Colorbox module, thanks.
$dom_text = $dom_exists ?
......
......@@ -34,8 +34,12 @@ trait TraitDescriptions {
*/
public function baseDescriptions($scopes): array {
$namespace = $scopes->get('namespace', 'blazy');
$help = '/admin/help/blazy_ui';
$ui_url = '/admin/config/media/blazy';
if ($this->blazyManager->moduleExists('help')) {
$help = Url::fromUri('internal:/admin/help/blazy_ui')->toString();
$ui_url = Url::fromUri('internal:/admin/config/media/blazy')->toString();
}
if ($this->blazyManager->moduleExists('blazy_ui')) {
$ui_url = Url::fromRoute('blazy.settings')->toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment