public function TestCacheWarmer::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

Overrides CacheWarmerInterface::isOptional

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/CacheWarmer/CacheWarmerTest.php, line 63

Class

TestCacheWarmer

Namespace

Symfony\Component\HttpKernel\Tests\CacheWarmer

Code

public function isOptional() {
  return false;
}