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

Breadcrumb

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

function SyntheticTrait::synthetic

Sets whether this definition is synthetic, that is not constructed by the container, but dynamically injected.

Return value

$this

File

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

Class

SyntheticTrait

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits

Code

public final function synthetic(bool $synthetic = true) : static {
    $this->definition
        ->setSynthetic($synthetic);
    return $this;
}

API Navigation

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