You are here

class GroupContentMenuServiceProvider in Group Content Menu 8

Modifies the parent form selector service.

Hierarchy

Expanded class hierarchy of GroupContentMenuServiceProvider

File

src/GroupContentMenuServiceProvider.php, line 11

Namespace

Drupal\group_content_menu
View source
class GroupContentMenuServiceProvider extends ServiceProviderBase {

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

}

Members

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