You are here

public function RenderStack::supportsDynamicAssets in Render cache 7.2

Getter/Setter for dynamic asset support.

This should only be set to TRUE, when render_cache.settings.inc is included in settings.php, which will set $conf['render_cache_supports_dynamic_assets'] = TRUE.

This is needed to determine if its necessary to collect assets before setting the cache ourselves or if they have been added to the stacks recursive storage.

Note: This settings include will only work with a core patch for now.

Parameters

bool $supportsDynamicAssets: If this isset the stack state will be changed to this.

Return value

bool Whether or not dynamic assets are supported.

1 call to RenderStack::supportsDynamicAssets()
RenderStack::render in src/Cache/RenderStack.php

File

src/Cache/RenderStack.php, line 196
Contains \Drupal\render_cache\Cache\RenderStack

Class

RenderStack
Defines the RenderStack service.

Namespace

Drupal\render_cache\Cache

Code

public function supportsDynamicAssets($supportsDynamicAssets = NULL) {
  if (isset($supportsDynamicAssets)) {
    $this->supportsDynamicAssets = $supportsDynamicAssets;
  }
  return $this->supportsDynamicAssets;
}