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

Breadcrumb

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

function ShareTrait::share

Sets if the service must be shared or not.

Return value

$this

File

vendor/symfony/dependency-injection/Loader/Configurator/Traits/ShareTrait.php, line 21

Class

ShareTrait

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits

Code

public final function share(bool $shared = true) : static {
    $this->definition
        ->setShared($shared);
    return $this;
}

API Navigation

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