DateRecurInterpreterManager.php in Recurring Dates Field 3.0.x
File
src/Plugin/DateRecurInterpreterManager.php
View source
<?php
declare (strict_types=1);
namespace Drupal\date_recur\Plugin;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class DateRecurInterpreterManager extends DefaultPluginManager implements DateRecurInterpreterManagerInterface {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/DateRecurInterpreter', $namespaces, $module_handler, 'Drupal\\date_recur\\Plugin\\DateRecurInterpreterPluginInterface', 'Drupal\\date_recur\\Annotation\\DateRecurInterpreter');
$this
->setCacheBackend($cache_backend, 'date_recur_interpreter_info', [
'config:date_recur_interpreter_list',
]);
}
}