1. 8.2.x core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php FactoryInterface
  2. 8.0.x core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php FactoryInterface
  3. 8.1.x core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php FactoryInterface
  4. 8.3.x core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php FactoryInterface

Factory interface implemented by all plugin factories.

Hierarchy

Expanded class hierarchy of FactoryInterface

All classes that implement FactoryInterface

2 files declare their use of FactoryInterface

File

core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php, line 8

Namespace

Drupal\Component\Plugin\Factory
View source
interface FactoryInterface {

  /**
   * Creates a pre-configured instance of a plugin.
   *
   * @param string $plugin_id
   *   The ID of the plugin being instantiated.
   * @param array $configuration
   *   An array of configuration relevant to the plugin instance.
   *
   * @return object
   *   A fully configured plugin instance.
   *
   * @throws \Drupal\Component\Plugin\Exception\PluginException
   *   If the instance cannot be created, such as if the ID is invalid.
   */
  public function createInstance($plugin_id, array $configuration = array());

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin.