function ElementInfoManagerInterface::createInstance
Creates a plugin instance based on the provided ID and configuration.
Parameters
string $plugin_id: The ID of the plugin being instantiated.
array $configuration: An array of configuration relevant to the plugin instance.
Return value
\Drupal\Core\Render\Element\ElementInterface A fully configured render object.
Overrides FactoryInterface::createInstance
File
-
core/
lib/ Drupal/ Core/ Render/ ElementInfoManagerInterface.php, line 88
Class
- ElementInfoManagerInterface
- Collects available render array element types.
Namespace
Drupal\Core\RenderCode
public function createInstance($plugin_id, array $configuration = []) : ElementInterface;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.