MaestroEngineTasksPluginManager.php in Maestro 8.2
File
src/MaestroEngineTasksPluginManager.php
View source
<?php
namespace Drupal\maestro;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class MaestroEngineTasksPluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
$subdir = 'Plugin/EngineTasks';
$plugin_interface = 'Drupal\\maestro\\MaestroEngineTaskInterface';
$plugin_definition_annotation_name = 'Drupal\\Component\\Annotation\\Plugin';
parent::__construct($subdir, $namespaces, $module_handler, $plugin_interface, $plugin_definition_annotation_name);
$this
->alterInfo('maestro_tasks_info');
$this
->setCacheBackend($cache_backend, 'maestro_tasks_info');
}
}