class Optional

Same name in this branch

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

  • class \Symfony\Component\Validator\Constraint
    • class \Symfony\Component\Validator\Constraints\Existence
      • class \Symfony\Component\Validator\Constraints\Optional
        • class \Symfony\Component\Validator\Constraints\Collection\Optional

Expanded class hierarchy of Optional

Deprecated

Deprecated in 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Validator\Constraints\Optional} instead.

5 string references to 'Optional'
comment_form_node_type_form_alter in drupal/core/modules/comment/comment.module
Implements hook_form_FORM_ID_alter().
FilterPluginBase::buildExposedFiltersGroupForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
Build the form to let users create the group of exposed filters. This form is displayed when users click on button 'Build group'
link_field_instance_settings_form in drupal/core/modules/link/link.module
Implements hook_field_instance_settings_form().
node_type_form in drupal/core/modules/node/content_types.inc
Form constructor for the node type editing form.
views.data_types.schema.yml in drupal/core/modules/views/config/schema/views.data_types.schema.yml
drupal/core/modules/views/config/schema/views.data_types.schema.yml

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Collection/Optional.php, line 24

Namespace

Symfony\Component\Validator\Constraints\Collection
View source
class Optional extends BaseOptional {

}

Members

Namesort descending Modifiers Type Description Overrides
Constraint::$groups public property
Constraint::addImplicitGroupName public function Adds the given group if this constraint is in the Default group
Constraint::CLASS_CONSTRAINT constant Marks a constraint that can be put onto classes
Constraint::DEFAULT_GROUP constant The name of the group given to all constraints with no explicit group
Constraint::getRequiredOptions public function Returns the name of the required options 10
Constraint::getTargets public function Returns whether the constraint can be put onto classes, properties or both 7
Constraint::PROPERTY_CONSTRAINT constant Marks a constraint that can be put onto properties
Constraint::validatedBy public function Returns the name of the class that validates this constraint 2
Constraint::__construct public function Initializes the constraint with options. 10
Constraint::__set public function Unsupported operation.
Existence::$constraints public property
Existence::getDefaultOption public function Returns the name of the default option Overrides Constraint::getDefaultOption