EntityProviderManager.php in Crop API 8.2
File
src/EntityProviderManager.php
View source
<?php
namespace Drupal\crop;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class EntityProviderManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Crop/EntityProvider', $namespaces, $module_handler, 'Drupal\\crop\\EntityProviderInterface', 'Drupal\\crop\\Annotation\\CropEntityProvider');
$this
->alterInfo('crop_entity_provider_info');
$this
->setCacheBackend($cache_backend, 'crop_entity_provider_plugins');
}
}