function FilterFormatRepository::__construct

Same name and namespace in other branches
  1. main core/modules/filter/src/FilterFormatRepository.php \Drupal\filter\FilterFormatRepository::__construct()

File

core/modules/filter/src/FilterFormatRepository.php, line 28

Class

FilterFormatRepository
Provides a repository service for filter formats.

Namespace

Drupal\filter

Code

public function __construct(protected EntityTypeManagerInterface $entityTypeManager, protected ConfigFactoryInterface $configFactory, protected AccountProxyInterface $currentUser, protected LanguageManagerInterface $languageManager, #[Autowire(service: 'cache.default')] protected CacheBackendInterface $persistentCache, #[Autowire(service: 'cache.memory')] protected CacheBackendInterface $memoryCache) {
  $this->cache = (new BackendChain())->appendBackend($memoryCache)
    ->appendBackend($persistentCache);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.