class Required

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

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

Expanded class hierarchy of Required

Deprecated

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

9 string references to 'Required'
comment_form_node_type_form_alter in drupal/core/modules/comment/comment.module
Implements hook_form_FORM_ID_alter().
ElementsLabelsTest::testFormLabels in drupal/core/modules/system/lib/Drupal/system/Tests/Form/ElementsLabelsTest.php
Test form elements, labels, title attibutes and required marks output correctly and have the correct label option class if needed.
FilterPluginBase::buildExposeForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
Options form subform for exposed filter options.
form_pre_render_conditional_form_element in drupal/core/includes/form.inc
Adds form element theming to an element if its title or description is set.
form_test_menu in drupal/core/modules/system/tests/modules/form_test/form_test.module
Implements hook_menu().

... See full list

File

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

Namespace

Symfony\Component\Validator\Constraints\Collection
View source
class Required extends BaseRequired {

}

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