You are here

class LayoutBuilderStServiceProvider in Layout Builder Symmetric Translations 8

Hierarchy

Expanded class hierarchy of LayoutBuilderStServiceProvider

File

src/LayoutBuilderStServiceProvider.php, line 8

Namespace

Drupal\layout_builder_st
View 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

Namesort descending Modifiers Type Description Overrides
LayoutBuilderStServiceProvider::register public function Registers services to the container. Overrides ServiceProviderBase::register
ServiceProviderBase::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter 5