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

Breadcrumb

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

trait SyntheticTrait

Hierarchy

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

File

vendor/symfony/dependency-injection/Loader/Configurator/Traits/SyntheticTrait.php, line 14

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits
View source
trait SyntheticTrait {
    
    /**
     * Sets whether this definition is synthetic, that is not constructed by the
     * container, but dynamically injected.
     *
     * @return $this
     */
    public final function synthetic(bool $synthetic = true) : static {
        $this->definition
            ->setSynthetic($synthetic);
        return $this;
    }

}

Members

Title Sort descending Modifiers Object type Summary
SyntheticTrait::synthetic final public function Sets whether this definition is synthetic, that is not constructed by the
container, but dynamically injected.
RSS feed
Powered by Drupal