public function CacheWarmerInterface::isOptional

Checks whether this warmer is optional or not.

Optional warmers can be ignored on certain conditions.

A warmer should return true if the cache can be generated incrementally and on-demand.

Return value

Boolean true if the warmer is optional, false otherwise

2 methods override CacheWarmerInterface::isOptional()
CacheWarmerAggregate::isOptional in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php
Checks whether this warmer is optional or not.
TestCacheWarmer::isOptional in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerTest.php
Checks whether this warmer is optional or not.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerInterface.php, line 31

Class

CacheWarmerInterface
Interface for classes able to warm up the cache.

Namespace

Symfony\Component\HttpKernel\CacheWarmer

Code

public function isOptional();