Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ServicesConfigurator.php

function ServicesConfigurator::remove

Removes an already defined service definition or alias.

Return value

$this

File

vendor/symfony/dependency-injection/Loader/Configurator/ServicesConfigurator.php, line 103

Class

ServicesConfigurator
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator

Code

public final function remove(string $id) : static {
    $this->container
        ->removeDefinition($id);
    $this->container
        ->removeAlias($id);
    return $this;
}
RSS feed
Powered by Drupal