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

Breadcrumb

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

function PropertyTrait::property

Sets a specific property.

Return value

$this

File

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

Class

PropertyTrait

Namespace

Symfony\Component\DependencyInjection\Loader\Configurator\Traits

Code

public final function property(string $name, mixed $value) : static {
    $this->definition
        ->setProperty($name, static::processValue($value, true));
    return $this;
}

API Navigation

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