LinkTypeConstraint.php

Same filename in other branches
  1. 9 core/modules/link/src/Plugin/Validation/Constraint/LinkTypeConstraint.php
  2. 10 core/modules/link/src/Plugin/Validation/Constraint/LinkTypeConstraint.php
  3. 11.x core/modules/link/src/Plugin/Validation/Constraint/LinkTypeConstraint.php

Namespace

Drupal\link\Plugin\Validation\Constraint

File

core/modules/link/src/Plugin/Validation/Constraint/LinkTypeConstraint.php

View source
<?php

namespace Drupal\link\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Validation constraint for links receiving data allowed by its settings.
 *
 * @Constraint(
 *   id = "LinkType",
 *   label = @Translation("Link data valid for link type.", context = "Validation"),
 * )
 */
class LinkTypeConstraint extends Constraint {
    public $message = "The path '@uri' is invalid.";

}

Classes

Title Deprecated Summary
LinkTypeConstraint Validation constraint for links receiving data allowed by its settings.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.