class ReflectionFactory

A plugin factory that maps instance configuration to constructor arguments.

Provides logic for any basic plugin type that needs to provide individual plugins based upon some basic logic.

Hierarchy

Expanded class hierarchy of ReflectionFactory

4 files declare their use of ReflectionFactory

File

drupal/core/lib/Drupal/Component/Plugin/Factory/ReflectionFactory.php, line 17
Definition of Drupal\Component\Plugin\Factory\ReflectionFactory.

Namespace

Drupal\Component\Plugin\Factory
View source

Members

Namesort descending Modifiers Type Description Overrides
DefaultFactory::$discovery protected property The object that retrieves the definitions of the plugins that this factory instantiates.
DefaultFactory::getPluginClass public static function Finds the class relevant for a given plugin.
DefaultFactory::__construct public function Constructs a Drupal\Component\Plugin\Factory\DefaultFactory object.
ReflectionFactory::createInstance public function Implements Drupal\Component\Plugin\Factory\FactoryInterface::createInstance(). Overrides DefaultFactory::createInstance
ReflectionFactory::getInstanceArguments protected function Inspects the plugin class and build a list of arguments for the constructor.