createPlaceholderAndRemember example

return $cached_placeholder_result;
      }
    }

    $cached_element = parent::get($elements);

    if ($cached_element === FALSE) {
      return FALSE;
    }
    else {
      if ($this->placeholderGenerator->canCreatePlaceholder($elements) && $this->placeholderGenerator->shouldAutomaticallyPlaceholder($cached_element)) {
        return $this->createPlaceholderAndRemember($cached_element$elements);
      }

      return $cached_element;
    }
  }

  /** * {@inheritdoc} */
  public function set(array &$elements, array $pre_bubbling_elements) {
    $result = parent::set($elements$pre_bubbling_elements);

    
Home | Imprint | This part of the site doesn't use cookies.