You are here

public function CacheWarmerInterface::isOptional in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/CacheWarmer/CacheWarmerInterface.php \Symfony\Component\HttpKernel\CacheWarmer\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

bool true if the warmer is optional, false otherwise

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

File

vendor/symfony/http-kernel/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();