class IsExecutableConstraint
Validates that a value is the path of an executable file.
Attributes
#[Constraint(id: 'IsExecutable', label: new TranslatableMarkup('Is executable', [], [
'context' => 'Validation',
]))]
Hierarchy
- class \Drupal\package_manager\Plugin\Validation\Constraint\IsExecutableConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of IsExecutableConstraint
File
-
core/
modules/ package_manager/ src/ Plugin/ Validation/ Constraint/ IsExecutableConstraint.php, line 14
Namespace
Drupal\package_manager\Plugin\Validation\ConstraintView source
final class IsExecutableConstraint extends SymfonyConstraint {
/**
* The error message shown when the path is not executable.
*
* @var string
*/
public string $message = '"@path" is not an executable file.';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
IsExecutableConstraint::$message | public | property | The error message shown when the path is not executable. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.