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

Breadcrumb

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

function Definition::setPublic

Sets the visibility of this service.

Return value

$this

1 call to Definition::setPublic()
Definition::setSynthetic in vendor/symfony/dependency-injection/Definition.php
Sets whether this definition is synthetic, that is not constructed by the container, but dynamically injected.

File

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

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function setPublic(bool $boolean) : static {
    $this->changes['public'] = true;
    $this->public = $boolean;
    return $this;
}
RSS feed
Powered by Drupal