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

Breadcrumb

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

function ArgumentMetadata::__construct

Parameters

object[] $attributes:

File

vendor/symfony/http-kernel/ControllerMetadata/ArgumentMetadata.php, line 26

Class

ArgumentMetadata
Responsible for storing metadata of an argument.

Namespace

Symfony\Component\HttpKernel\ControllerMetadata

Code

public function __construct(string $name, ?string $type, bool $isVariadic, bool $hasDefaultValue, mixed $defaultValue, bool $isNullable = false, array $attributes = [], string $controllerName = 'n/a') {
    $this->isNullable = $isNullable || null === $type || $hasDefaultValue && null === $defaultValue;
}

API Navigation

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