function ExtensionExistsConstraint::getDefaultOption

Same name in other branches
  1. 10 core/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionExistsConstraint.php \Drupal\Core\Extension\Plugin\Validation\Constraint\ExtensionExistsConstraint::getDefaultOption()

File

core/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionExistsConstraint.php, line 51

Class

ExtensionExistsConstraint
Checks that the value is the name of an installed extension.

Namespace

Drupal\Core\Extension\Plugin\Validation\Constraint

Code

public function getDefaultOption() : ?string {
    return 'type';
}

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