LinkAccessConstraint.php

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

Namespace

Drupal\link\Plugin\Validation\Constraint

File

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

View source
<?php

namespace Drupal\link\Plugin\Validation\Constraint;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;

/**
 * Defines an access validation constraint for links.
 */
class LinkAccessConstraint extends SymfonyConstraint {
    public $message = "The path '@uri' is inaccessible.";

}

Classes

Title Deprecated Summary
LinkAccessConstraint Defines an access validation constraint for links.

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