You are here

class OgMenuServiceProvider in Organic Groups Menu (OG Menu) 8

Modifies the language manager service.

Hierarchy

Expanded class hierarchy of OgMenuServiceProvider

File

src/OgMenuServiceProvider.php, line 14
Contains \OgMenuServiceProvider

Namespace

Drupal\og_menu
View source
class OgMenuServiceProvider extends ServiceProviderBase {

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

    // Overrides language_manager class to test domain language negotiation.
    $definition = $container
      ->getDefinition('menu.parent_form_selector');
    $definition
      ->setClass('Drupal\\og_menu\\OgMenuParentFormSelector');
  }

}

Members

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