LightningApiServiceProvider.php in Lightning API 8.4
Same filename and directory in other branches
Namespace
Drupal\lightning_apiFile
src/LightningApiServiceProvider.phpView source
<?php
namespace Drupal\lightning_api;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
/**
* Modifies container services at compile time.
*/
class LightningApiServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
parent::alter($container);
if ($container
->hasDefinition('metatag.normalizer.metatag_field')) {
$container
->getDefinition('metatag.normalizer.metatag_field')
->clearTag('normalizer');
}
if ($container
->hasDefinition('metatag.normalizer.metatag')) {
$container
->getDefinition('metatag.normalizer.metatag')
->clearTag('normalizer');
}
if ($container
->hasDefinition('metatag.normalizer.metatag.hal')) {
$container
->getDefinition('metatag.normalizer.metatag.hal')
->clearTag('normalizer');
}
}
}
Classes
Name | Description |
---|---|
LightningApiServiceProvider | Modifies container services at compile time. |