DefaultFactory::$discovery

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php \Drupal\Component\Plugin\Factory\DefaultFactory::discovery
  2. 10 core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php \Drupal\Component\Plugin\Factory\DefaultFactory::discovery
  3. 11.x core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php \Drupal\Component\Plugin\Factory\DefaultFactory::discovery

The object that retrieves the definitions of the plugins that this factory instantiates.

The plugin definition includes the plugin class and possibly other information necessary for proper instantiation.

Type: \Drupal\Component\Plugin\Discovery\DiscoveryInterface

File

core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php, line 27

Class

DefaultFactory
Default plugin factory.

Namespace

Drupal\Component\Plugin\Factory

Code

protected $discovery;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.