FieldFormatterConditionManager.php in Field Formatter Condition 8
File
src/Plugin/FieldFormatterConditionManager.php
View source
<?php
namespace Drupal\fico\Plugin;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class FieldFormatterConditionManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Field/FieldFormatter/Condition', $namespaces, $module_handler, 'Drupal\\fico\\Plugin\\FieldFormatterConditionInterface', 'Drupal\\fico\\Annotation\\FieldFormatterCondition');
$this
->alterInfo('fico_field_formatter_condition_info');
$this
->setCacheBackend($cache_backend, 'fico_field_formatter_condition_plugins');
}
public function getPlugins() {
return $this
->getDefinitions();
}
}