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

Breadcrumb

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

function AutoconfigureTrait::autoconfigure

Sets whether or not instanceof conditionals should be prepended with a global set.

Return value

$this

Throws

InvalidArgumentException when a parent is already set

File

vendor/symfony/dependency-injection/Loader/Configurator/Traits/AutoconfigureTrait.php, line 25

Class

AutoconfigureTrait

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits

Code

public final function autoconfigure(bool $autoconfigured = true) : static {
    $this->definition
        ->setAutoconfigured($autoconfigured);
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal