class Type

@author Bernhard Schussek <bschussek@gmail.com>

@api

Hierarchy

  • class \Symfony\Component\Validator\Constraint
    • class \Symfony\Component\Validator\Constraints\Type

Expanded class hierarchy of Type

3 files declare their use of Type
Context.php in drupal/core/lib/Drupal/Component/Plugin/Context/Context.php
Contains \Drupal\Component\Plugin\Context\Context.
PrimitiveTypeConstraint.php in drupal/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraint.php
Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\PrimitiveTypeConstraint.
TypeValidatorTest.php in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php
20 string references to 'Type'
AddItem::buildForm in drupal/core/modules/views_ui/lib/Drupal/views_ui/Form/Ajax/AddItem.php
Implements \Drupal\Core\Form\FormInterface::buildForm().
ArgumentPluginBase::defaultArgumentForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Provide a form for selecting the default argument when the default action is set to provide default argument.
DbLogController::overview in drupal/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php
Displays a listing of database log messages.
DbLogTest::testFilter in drupal/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php
Tests the database log filter functionality at admin/reports/dblog.
dblog_event in drupal/core/modules/dblog/dblog.admin.inc
Page callback: Displays details about a specific database log message.

... See full list

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Type.php, line 23

Namespace

Symfony\Component\Validator\Constraints
View source
class Type extends Constraint {
  public $message = 'This value should be of type {{ type }}.';
  public $type;

  /**
   * {@inheritDoc}
   */
  public function getDefaultOption() {
    return 'type';
  }

  /**
   * {@inheritDoc}
   */
  public function getRequiredOptions() {
    return array(
      'type',
    );
  }

}

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::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.
Type::$message public property 1
Type::$type public property
Type::getDefaultOption public function Returns the name of the default option Overrides Constraint::getDefaultOption
Type::getRequiredOptions public function Returns the name of the required options Overrides Constraint::getRequiredOptions