class Installed in Markdown 8.2
Checks whether a specific class, interface, trait, or function exists.
@Constraint( id = "Installed", label = @Translation("Installed constraint", context = "Validation"), )
@todo Move upstream to https://www.drupal.org/project/installable_plugins. @internal
Hierarchy
Expanded class hierarchy of Installed
1 string reference to 'Installed'
- InstallableRequirement::validate in src/
Annotation/ InstallableRequirement.php - Validates the requirement.
File
- src/
Plugin/ Validation/ Constraint/ Installed.php, line 16
Namespace
Drupal\markdown\Plugin\Validation\ConstraintView source
class Installed extends Exists {
public $message = 'Requires @name';
public $name;
/**
* {@inheritdoc}
*/
public function validatedBy() {
return '\\Drupal\\markdown\\Plugin\\Validation\\Constraint\\ExistsValidator';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Installed:: |
public | property |
Overrides Exists:: |
|
Installed:: |
public | property | ||
Installed:: |
public | function | Returns the name of the class that validates this constraint. |