public function ContainerBuilder::setResources

Sets the resources for this configuration.

@api

Parameters

ResourceInterface[] $resources An array of resources:

Return value

ContainerBuilder The current instance

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 221

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

public function setResources(array $resources) {
  if (!$this->trackResources) {
    return $this;
  }
  $this->resources = $resources;
  return $this;
}