LayoutBuilderStServiceProvider.php in Layout Builder Symmetric Translations 8
Namespace
Drupal\layout_builder_stFile
src/LayoutBuilderStServiceProvider.phpView source
<?php
namespace Drupal\layout_builder_st;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
class LayoutBuilderStServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
$modules = $container
->getParameter('container.modules');
if (isset($modules['jsonapi'])) {
$container
->getDefinition('jsonapi.resource_type.repository')
->setClass(ResourceTypeRepository::class);
}
}
}
Classes
Name | Description |
---|---|
LayoutBuilderStServiceProvider |