You are here

public function OgMenuServiceProvider::alter in Organic Groups Menu (OG Menu) 8

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceProviderBase::alter

File

src/OgMenuServiceProvider.php, line 19
Contains \OgMenuServiceProvider

Class

OgMenuServiceProvider
Modifies the language manager service.

Namespace

Drupal\og_menu

Code

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');
}