function HelpTopicTwig::create

Instantiates a new instance of the implementing class using autowiring.

Return value

static

Overrides PluginBase::create

File

core/modules/help/src/HelpTopicTwig.php, line 41

Class

HelpTopicTwig
Represents a help topic plugin whose definition comes from a Twig file.

Namespace

Drupal\help

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.