IsExecutableConstraint.php

Namespace

Drupal\package_manager\Plugin\Validation\Constraint

File

core/modules/package_manager/src/Plugin/Validation/Constraint/IsExecutableConstraint.php

View source
<?php

declare (strict_types=1);
namespace Drupal\package_manager\Plugin\Validation\Constraint;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;

/**
 * Validates that a value is the path of an executable file.
 */
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.';

}

Classes

Title Deprecated Summary
IsExecutableConstraint Validates that a value is the path of an executable file.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.