interface FactoryInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php \Drupal\Component\Plugin\Factory\FactoryInterface
Factory interface implemented by all plugin factories.
Hierarchy
- interface \Drupal\Component\Plugin\Factory\FactoryInterface
Expanded class hierarchy of FactoryInterface
All classes that implement FactoryInterface
2 files declare their use of FactoryInterface
- LocalActionManagerTest.php in core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalActionManagerTest.php - Contains \Drupal\Tests\Core\Menu\LocalActionManagerTest.
- PluginManagerInterface.php in core/
lib/ Drupal/ Component/ Plugin/ PluginManagerInterface.php - Contains \Drupal\Component\Plugin\PluginManagerInterface.
File
- core/
lib/ Drupal/ Component/ Plugin/ Factory/ FactoryInterface.php, line 12 - Contains \Drupal\Component\Plugin\Factory\FactoryInterface.
Namespace
Drupal\Component\Plugin\FactoryView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 5 |