You are here

class LanguageNeutralAliasesServiceProvider in Language neutral aliases 8

Modifies the path alias storage service.

Hierarchy

Expanded class hierarchy of LanguageNeutralAliasesServiceProvider

File

src/LanguageNeutralAliasesServiceProvider.php, line 11

Namespace

Drupal\language_neutral_aliases
View source
class LanguageNeutralAliasesServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {

    // Overrides path.alias_storage class to store aliases language neutral.
    $definition = $container
      ->getDefinition('path.alias_storage');
    $definition
      ->setClass('Drupal\\language_neutral_aliases\\LanguageNeutralAliasesStorage');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
LanguageNeutralAliasesServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1