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

Breadcrumb

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

function MapDateTime::__construct

Parameters

string|null $format The DateTime format to use, @see https://php.net/datetime.format:

bool $disabled Whether this value resolver is disabled; this allows to enable a value resolver globally while disabling it in specific cases:

class-string<ValueResolverInterface>|string $resolver The name of the resolver to use:

Overrides ValueResolver::__construct

File

vendor/symfony/http-kernel/Attribute/MapDateTime.php, line 28

Class

MapDateTime
Controller parameter tag to configure DateTime arguments.

Namespace

Symfony\Component\HttpKernel\Attribute

Code

public function __construct(?string $format = null, bool $disabled = false, string $resolver = DateTimeValueResolver::class) {
    parent::__construct($resolver, $disabled);
}

API Navigation

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