ConsumerImageStylesServiceProvider.php in Consumer Image Styles 4.x
Same filename and directory in other branches
Namespace
Drupal\consumer_image_stylesFile
src/ConsumerImageStylesServiceProvider.phpView source
<?php
namespace Drupal\consumer_image_styles;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
/**
* Replace the resource type repository for our own configurable version.
*/
class ConsumerImageStylesServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
if ($container
->has('serializer.normalizer.link_collection.jsonapi')) {
$container
->getDefinition('serializer.normalizer.link_collection.jsonapi')
->clearTags();
}
}
}
Classes
Name | Description |
---|---|
ConsumerImageStylesServiceProvider | Replace the resource type repository for our own configurable version. |