You are here

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

  • class \Drupal\markdown\Plugin\Validation\Constraint\Exists extends \Symfony\Component\Validator\Constraint
    • class \Drupal\markdown\Plugin\Validation\Constraint\Installed

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\Constraint
View source
class Installed extends Exists {
  public $message = 'Requires @name';
  public $name;

  /**
   * {@inheritdoc}
   */
  public function validatedBy() {
    return '\\Drupal\\markdown\\Plugin\\Validation\\Constraint\\ExistsValidator';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Installed::$message public property Overrides Exists::$message
Installed::$name public property
Installed::validatedBy public function Returns the name of the class that validates this constraint.