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

Breadcrumb

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

trait AutoconfigureTrait

Hierarchy

  • trait \Symfony\Component\DependencyInjection\Loader\Configurator\Traits\AutoconfigureTrait

File

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

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits
View source
trait AutoconfigureTrait {
    
    /**
     * Sets whether or not instanceof conditionals should be prepended with a global set.
     *
     * @return $this
     *
     * @throws InvalidArgumentException when a parent is already set
     */
    public final function autoconfigure(bool $autoconfigured = true) : static {
        $this->definition
            ->setAutoconfigured($autoconfigured);
        return $this;
    }

}

Members

Title Sort descending Modifiers Object type Summary
AutoconfigureTrait::autoconfigure final public function Sets whether or not instanceof conditionals should be prepended with a global set.

API Navigation

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