You are here

public function GroupContentMenuServiceProvider::alter in Group Content Menu 8

Modifies existing service definitions.

Parameters

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

Overrides ServiceProviderBase::alter

File

src/GroupContentMenuServiceProvider.php, line 16

Class

GroupContentMenuServiceProvider
Modifies the parent form selector service.

Namespace

Drupal\group_content_menu

Code

public function alter(ContainerBuilder $container) {
  if ($definition = $container
    ->getDefinition('menu.parent_form_selector')) {
    $definition
      ->setClass(GroupContentMenuParentFormSelector::class);
  }
}