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

Breadcrumb

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

function Constraint::getDefaultOption

Returns the name of the default option.

Override this method to define a default option.

See also

__construct()

1 call to Constraint::getDefaultOption()
Constraint::normalizeOptions in vendor/symfony/validator/Constraint.php
28 methods override Constraint::getDefaultOption()
AbstractComparison::getDefaultOption in vendor/symfony/validator/Constraints/AbstractComparison.php
Returns the name of the default option.
All::getDefaultOption in vendor/symfony/validator/Constraints/All.php
Returns the name of the default option.
AtLeastOneOf::getDefaultOption in vendor/symfony/validator/Constraints/AtLeastOneOf.php
Returns the name of the default option.
BundleConstraint::getDefaultOption in core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php
Returns the name of the default option.
Callback::getDefaultOption in vendor/symfony/validator/Constraints/Callback.php
Returns the name of the default option.

... See full list

File

vendor/symfony/validator/Constraint.php, line 246

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function getDefaultOption() : ?string {
    return null;
}

API Navigation

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