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

Breadcrumb

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

class AbstractArgument

Represents an abstract service argument, which have to be set by a compiler pass or a DI extension.

Hierarchy

  • class \Symfony\Component\DependencyInjection\Argument\AbstractArgument

Expanded class hierarchy of AbstractArgument

10 files declare their use of AbstractArgument
AbstractConfigurator.php in vendor/symfony/dependency-injection/Loader/Configurator/AbstractConfigurator.php
ContainerBuilder.php in vendor/symfony/dependency-injection/ContainerBuilder.php
ContainerConfigurator.php in vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php
PhpDumper.php in vendor/symfony/dependency-injection/Dumper/PhpDumper.php
ResolveBindingsPass.php in vendor/symfony/dependency-injection/Compiler/ResolveBindingsPass.php

... See full list

File

vendor/symfony/dependency-injection/Argument/AbstractArgument.php, line 17

Namespace

Symfony\Component\DependencyInjection\Argument
View source
final class AbstractArgument {
    private string $text;
    private string $context = '';
    public function __construct(string $text = '') {
        $this->text = trim($text, '. ');
    }
    public function setContext(string $context) : void {
        $this->context = $context . ' is abstract' . ('' === $this->text ? '' : ': ');
    }
    public function getText() : string {
        return $this->text;
    }
    public function getTextWithContext() : string {
        return $this->context . $this->text . '.';
    }

}

Members

Title Sort descending Modifiers Object type Summary
AbstractArgument::$context private property
AbstractArgument::$text private property
AbstractArgument::getText public function
AbstractArgument::getTextWithContext public function
AbstractArgument::setContext public function
AbstractArgument::__construct public function
RSS feed
Powered by Drupal