PanelizerEntityManager.php in Panelizer 8.4
File
src/Plugin/PanelizerEntityManager.php
View source
<?php
namespace Drupal\panelizer\Plugin;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class PanelizerEntityManager extends DefaultPluginManager implements PanelizerEntityManagerInterface {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/PanelizerEntity', $namespaces, $module_handler, 'Drupal\\panelizer\\Plugin\\PanelizerEntityInterface', 'Drupal\\panelizer\\Annotation\\PanelizerEntity');
$this
->alterInfo('panelizer_entity_info');
$this
->setCacheBackend($cache_backend, 'panelizer_entity_plugins');
}
}