You are here

class ApiDocFileLinkConstraint in Apigee API Catalog 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Validation/Constraint/ApiDocFileLinkConstraint.php \Drupal\apigee_api_catalog\Plugin\Validation\Constraint\ApiDocFileLinkConstraint

Checks for valid file_link.

Plugin annotation


@Constraint(
  id = "ApiDocFileLink",
  label = @Translation("Checks for valid file_link.", context = "Validation"),
  type = "string"
)

Hierarchy

  • class \Drupal\apigee_api_catalog\Plugin\Validation\Constraint\ApiDocFileLinkConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of ApiDocFileLinkConstraint

File

src/Plugin/Validation/Constraint/ApiDocFileLinkConstraint.php, line 34

Namespace

Drupal\apigee_api_catalog\Plugin\Validation\Constraint
View source
class ApiDocFileLinkConstraint extends Constraint {

  /**
   * Message to be shown when it is not a valid link.
   *
   * @var string
   */
  public $notValid = '%value is not a valid link';

  /**
   * Message to be shown when it is not a valid link.
   *
   * @var string
   */
  public $urlParseError = 'The following error occurred while getting the link URL: @error';

}

Members

Namesort descending Modifiers Type Description Overrides
ApiDocFileLinkConstraint::$notValid public property Message to be shown when it is not a valid link.
ApiDocFileLinkConstraint::$urlParseError public property Message to be shown when it is not a valid link.