You are here

public function TypeMapperPluginManager::__construct in Schemata 8

Constructs a new \Drupal\rest\Plugin\Type\ResourcePluginManager object.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

Overrides DefaultPluginManager::__construct

File

schemata_json_schema/src/Plugin/Type/TypeMapperPluginManager.php, line 39

Class

TypeMapperPluginManager
Manages TypeMapper plugins.

Namespace

Drupal\schemata_json_schema\Plugin\Type

Code

public function __construct(\Traversable $namespaces, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/schemata_json_schema/type_mapper', $namespaces, $module_handler, TypeMapperInterface::class, TypeMapper::class);
  $this
    ->alterInfo('json_schema_type_mapper');
}