FormComponentTypePluginManager.php in Flexiform 8
File
src/FormComponentTypePluginManager.php
View source
<?php
namespace Drupal\flexiform;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class FormComponentTypePluginManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/FormComponentType', $namespaces, $module_handler, 'Drupal\\flexiform\\FormComponent\\FormComponentTypeInterface', 'Drupal\\flexiform\\Annotation\\FormComponentType');
$this
->alterInfo('flexiform_form_compoent_type');
$this
->setCacheBackend($cache_backend, 'flexiform_form_component_type_plugins');
}
}