ServiceModifierInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php
  2. 10 core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php
  3. 11.x core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php

Namespace

Drupal\Core\DependencyInjection

File

core/lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php

View source
<?php

namespace Drupal\Core\DependencyInjection;


/**
 * Interface that service providers can implement to modify services.
 *
 * @ingroup container
 */
interface ServiceModifierInterface {
    
    /**
     * Modifies existing service definitions.
     *
     * @param ContainerBuilder $container
     *   The ContainerBuilder whose service definitions can be altered.
     */
    public function alter(ContainerBuilder $container);

}

Interfaces

Title Deprecated Summary
ServiceModifierInterface Interface that service providers can implement to modify services.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.