TwigExtenderServiceProvider.php in Twig Extender 8.3
Same filename and directory in other branches
Namespace
Drupal\twig_extenderFile
src/TwigExtenderServiceProvider.phpView source
<?php
namespace Drupal\twig_extender;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Symfony\Component\DependencyInjection\Reference;
/**
* Modifies the language manager service.
*/
class TwigExtenderServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('twig.extension');
$definition
->setClass('\\Drupal\\twig_extender\\TwigExtenderService');
$definition
->addArgument(new Reference('plugin.manager.twig_extender'));
}
}
Classes
Name | Description |
---|---|
TwigExtenderServiceProvider | Modifies the language manager service. |