You are here

public static function RenderTagPlugin::create in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Plugin/RenderTagPlugin.php \Drupal\xbbcode\Plugin\RenderTagPlugin::create()

Create a plugin instance.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: Container.

array $configuration: Plugin configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

Return value

static

Throws

\Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException

\Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/RenderTagPlugin.php, line 60

Class

RenderTagPlugin
Base class for plugins that produce a Drupal render array.

Namespace

Drupal\xbbcode\Plugin

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('renderer'));
}