Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CacheWarmerInterface.php

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.

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

File

vendor/symfony/http-kernel/CacheWarmer/CacheWarmerInterface.php, line 29

Class

CacheWarmerInterface
Interface for classes able to warm up the cache.

Namespace

Symfony\Component\HttpKernel\CacheWarmer

Code

public function isOptional() : bool;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal