Commit ca6aa281 authored by Sven Berg Ryen's avatar Sven Berg Ryen Committed by Sven Berg Ryen
Browse files

Issue #3274387 by svenryen: Problem with cache clearing

parent 2aed5069
Loading
Loading
Loading
Loading
+2 −7
Changes for src/Form/EuCookieComplianceConfigForm.php: 2 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -113,13 +113,8 @@ class EuCookieComplianceConfigForm extends ConfigFormBase {
    $this->filterFormatStorage = $entity_type_manager;
    $this->consentStorage = $consent_storage;
    $this->cacheBootstrap = $cache_bootstrap;
    if ($cache_page->get('bin') === 'cache_page') {
    $this->cachePage = $cache_page;
  }
    else {
      $this->cachePage = NULL;
    }
  }

  /**
   * {@inheritdoc}
@@ -137,7 +132,7 @@ class EuCookieComplianceConfigForm extends ConfigFormBase {
      $container->get('cache.bootstrap'),
      // Use a cache that's available to the user if the page cache isn't
      // available.
      $module_handler->moduleExists('cache.page') ? $container->get('cache.page') : $container->get('cache.render')
      $module_handler->moduleExists('page_cache') ? $container->get('cache.page') : $container->get('cache.render')
    );
  }

@@ -1287,7 +1282,7 @@ class EuCookieComplianceConfigForm extends ConfigFormBase {
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   Form state.
   */
  public function validatePopupLink(array $element, FormStateInterface &$form_state) {
  public function validatePopupLink(array $element, FormStateInterface $form_state) {
    if (empty($element['#value'])) {
      return;
    }