class LayoutBuilderStServiceProvider in Layout Builder Symmetric Translations 8
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\layout_builder_st\LayoutBuilderStServiceProvider
Expanded class hierarchy of LayoutBuilderStServiceProvider
File
- src/
LayoutBuilderStServiceProvider.php, line 8
Namespace
Drupal\layout_builder_stView source
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);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayoutBuilderStServiceProvider:: |
public | function |
Registers services to the container. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |
5 |