variationcache-8.x-1.0/src/Cache/VariationCacheFactoryInterface.php

src/Cache/VariationCacheFactoryInterface.php
<?php

namespace Drupal\variationcache\Cache;

/**
 * @file
 * Contains a class alias to keep old code functioning now that this module has
 * been integrated into Drupal 10.2 and higher. If you are running on this core
 * version, you should simply uninstall this module and update code that used to
 * use this module to point to the core classes directly.
 *
 * This is an extra precaution on top of the class_alias calls in the module
 * file because, sometimes, the variation_cache_factory service is already
 * instantiated while the container is being built (e.g. in an event subscriber)
 * and the module file hasn't been loaded yet at that point.
 */
if (!class_exists('\Drupal\Core\Cache\VariationCacheFactoryInterface')) {
  @class_alias('\Drupal\variationcache\Old\Cache\VariationCacheFactoryInterface', '\Drupal\variationcache\Cache\VariationCacheFactoryInterface');
}
else {
  @class_alias('\Drupal\Core\Cache\VariationCacheFactoryInterface', '\Drupal\variationcache\Cache\VariationCacheFactoryInterface');
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc