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

Breadcrumb

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

function Definition::setSynthetic

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

Return value

$this

File

vendor/symfony/dependency-injection/Definition.php, line 592

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setSynthetic(bool $boolean) : static {
    $this->synthetic = $boolean;
    if (!isset($this->changes['public'])) {
        $this->setPublic(true);
    }
    return $this;
}

API Navigation

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