class OgMenuServiceProvider in Organic Groups Menu (OG Menu) 8
Modifies the language manager service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\og_menu\OgMenuServiceProvider
Expanded class hierarchy of OgMenuServiceProvider
File
- src/
OgMenuServiceProvider.php, line 14 - Contains \OgMenuServiceProvider
Namespace
Drupal\og_menuView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OgMenuServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |