class GroupContentMenuServiceProvider in Group Content Menu 8
Modifies the parent form selector service.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\group_content_menu\GroupContentMenuServiceProvider
Expanded class hierarchy of GroupContentMenuServiceProvider
File
- src/
GroupContentMenuServiceProvider.php, line 11
Namespace
Drupal\group_content_menuView source
class GroupContentMenuServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
if ($definition = $container
->getDefinition('menu.parent_form_selector')) {
$definition
->setClass(GroupContentMenuParentFormSelector::class);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GroupContentMenuServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |