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

Breadcrumb

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

trait PropertyTrait

Hierarchy

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

File

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

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits
View source
trait PropertyTrait {
    
    /**
     * Sets a specific property.
     *
     * @return $this
     */
    public final function property(string $name, mixed $value) : static {
        $this->definition
            ->setProperty($name, static::processValue($value, true));
        return $this;
    }

}

Members

Title Sort descending Modifiers Object type Summary
PropertyTrait::property final public function Sets a specific property.
RSS feed
Powered by Drupal