Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
4e42a5ba
Commit
4e42a5ba
authored
May 07, 2014
by
Jennifer Hodgdon
Browse files
Issue
#2261391
by pwolanin, Crell: Fix up throws and other docs for FactoryInterface
parent
6c410da2
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Component/Plugin/Factory/FactoryInterface.php
View file @
4e42a5ba
<?php
/**
* @file
*
Definition of
Drupal\Component\Plugin\Factory\FactoryInterface.
*
Contains \
Drupal\Component\Plugin\Factory\FactoryInterface.
*/
namespace
Drupal\Component\Plugin\Factory
;
...
...
@@ -12,15 +12,18 @@
interface
FactoryInterface
{
/**
* Returns a preconfigured instance of a plugin.
* Returns a pre
-
configured instance of a plugin.
*
* @param string $plugin_id
* The
id
of the plugin being instantiated.
* 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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment