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

Breadcrumb

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

trait ConstructorTrait

Hierarchy

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

File

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

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits
View source
trait ConstructorTrait {
    
    /**
     * Sets a static constructor.
     *
     * @return $this
     */
    public final function constructor(string $constructor) : static {
        $this->definition
            ->setFactory([
            null,
            $constructor,
        ]);
        return $this;
    }

}

Members

Title Sort descending Modifiers Object type Summary
ConstructorTrait::constructor final public function Sets a static constructor.
RSS feed
Powered by Drupal