class Version in Markdown 8.2
Checks whether a specific version is satisfied by Semver constraints.
@Constraint( id = "Version", label = @Translation("Version constraint", context = "Validation"), )
@todo Move upstream to https://www.drupal.org/project/installable_plugins. @internal
Hierarchy
- class \Drupal\markdown\Plugin\Validation\Constraint\Version extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of Version
4 string references to 'Version'
- InstallablePluginBase::getVersionConstraint in src/
Plugin/ Markdown/ InstallablePluginBase.php - InstallablePluginManager::processLibraryDefinition in src/
PluginManager/ InstallablePluginManager.php - Processes the library definition.
- InstallablePluginTrait::getVersionRequirements in src/
Annotation/ InstallablePluginTrait.php - Retrieves requirements that contain "Version" constraints.
- InstallableRequirement::validate in src/
Annotation/ InstallableRequirement.php - Validates the requirement.
File
- src/
Plugin/ Validation/ Constraint/ Version.php, line 18
Namespace
Drupal\markdown\Plugin\Validation\ConstraintView source
class Version extends Constraint {
public $message = 'Version "@version" does not satisfy the following semantic version constraints "@constraints".';
public $namedMessage = 'Requires @name:@constraints';
public $name;
public $value;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Version:: |
public | property | ||
Version:: |
public | property | ||
Version:: |
public | property | ||
Version:: |
public | property |