LightningApiServiceProvider.php in Lightning API 8.2
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;
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 |