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

Breadcrumb

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

function DebugCommand::getConstraintOptions

2 calls to DebugCommand::getConstraintOptions()
DebugCommand::getClassConstraintsData in vendor/symfony/validator/Command/DebugCommand.php
DebugCommand::getPropertyData in vendor/symfony/validator/Command/DebugCommand.php

File

vendor/symfony/validator/Command/DebugCommand.php, line 200

Class

DebugCommand
A console command to debug Validators information.

Namespace

Symfony\Component\Validator\Command

Code

private function getConstraintOptions(Constraint $constraint) : array {
    $options = [];
    foreach (array_keys(get_object_vars($constraint)) as $propertyName) {
        // Groups are dumped on a specific column.
        if ('groups' === $propertyName) {
            continue;
        }
        $options[$propertyName] = $constraint->{$propertyName};
    }
    ksort($options);
    return $options;
}
RSS feed
Powered by Drupal