Commit 2ae7a154 authored by Anoop Singh's avatar Anoop Singh Committed by Sven Berg Ryen
Browse files

Issue #3302331 by anoopsingh92, svenryen: \Drupal calls should be avoided in...

Issue #3302331 by anoopsingh92, svenryen: \Drupal calls should be avoided in classes, use dependency injection instead
parent cc5530e7
Loading
Loading
Loading
Loading
+0 −1
Changes for src/Form/EuCookieComplianceConfigForm.php: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -1269,7 +1269,6 @@ class EuCookieComplianceConfigForm extends ConfigFormBase {
      $this->messenger()->addWarning($this->t('The module weight could not be set because the <code>config_readonly</code> module is enabled. To allow setting of module weight, please add <code>core.extension</code> to the <code>config_readonly</code> allowlist.'));
    }


    if ($this->moduleHandler->moduleExists('coloris')) {
      $bg_color = substr($form_state->getValue('popup_bg_hex'), 1);
      $text_color = substr($form_state->getValue('popup_text_hex'), 1);
+1 −1
Changes for src/Plugin/migrate/source/EuCookieCategory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ class EuCookieCategory extends DrupalSqlBase {
      ->execute()
      ->fetchField();

    $unserialised_categories = $categories !== FALSE ? unserialize($categories) : [];
    $unserialised_categories = $categories !== FALSE ? unserialize($categories, ['allowed_classes' => FALSE]) : [];
    return new \ArrayIterator($unserialised_categories);
  }