ContainerInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php
  2. 10 core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php

Namespace

Drupal\Component\DependencyInjection

File

core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php

View source
<?php

namespace Drupal\Component\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerInterface as BaseContainerInterface;

/**
 * The interface for Drupal service container classes.
 */
interface ContainerInterface extends BaseContainerInterface {
    
    /**
     * Gets all defined service IDs.
     *
     * @return array
     *   An array of all defined service IDs.
     */
    public function getServiceIds();

}

Interfaces

Title Deprecated Summary
ContainerInterface The interface for Drupal service container classes.

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