class ApiDocFileLinkConstraint in Apigee API Catalog 8
Same name and namespace in other branches
- 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\ConstraintView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ApiDocFileLinkConstraint:: |
public | property | Message to be shown when it is not a valid link. | |
ApiDocFileLinkConstraint:: |
public | property | Message to be shown when it is not a valid link. |