class SelectionPluginManager extends DefaultPluginManager
implements SelectionPluginManagerInterface, FallbackPluginManagerInterface
{ /**
* {@inheritdoc}
*/
public function __construct(\Traversable
$namespaces, CacheBackendInterface
$cache_backend, ModuleHandlerInterface
$module_handler) { $this->
alterInfo('entity_reference_selection'
);
$this->
setCacheBackend($cache_backend, 'entity_reference_selection_plugins'
);
parent::
__construct('Plugin/EntityReferenceSelection',
$namespaces,
$module_handler, 'Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface', 'Drupal\Core\Entity\Annotation\EntityReferenceSelection'
);
} /**
* {@inheritdoc}
*/
public function getInstance(array
$options) { if (!
isset($options['target_type'
])) { throw new \
InvalidArgumentException("Missing required 'target_type' property for a EntityReferenceSelection plugin."
);
}