public function ResourcePluginManager::__construct

Overrides Drupal\Component\Plugin\PluginManagerBase::__construct().

File

drupal/core/modules/rest/lib/Drupal/rest/Plugin/Type/ResourcePluginManager.php, line 23
Definition of Drupal\rest\Plugin\Type\ResourcePluginManager.

Class

ResourcePluginManager
Manages discovery and instantiation of resource plugins.

Namespace

Drupal\rest\Plugin\Type

Code

public function __construct() {

  // Create resource plugin derivatives from declaratively defined resources.
  $this->discovery = new DerivativeDiscoveryDecorator(new AnnotatedClassDiscovery('rest', 'resource'));
  $this->factory = new ReflectionFactory($this);
}