SearchPluginManager.php in Drupal 8
File
core/modules/search/src/SearchPluginManager.php
View source
<?php
namespace Drupal\search;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
class SearchPluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Search', $namespaces, $module_handler, 'Drupal\\search\\Plugin\\SearchInterface', 'Drupal\\search\\Annotation\\SearchPlugin');
$this
->setCacheBackend($cache_backend, 'search_plugins');
$this
->alterInfo('search_plugin');
}
}