function FileExtensionConstraint::getDefaultOption

Same name in other branches
  1. 11.x core/modules/file/src/Plugin/Validation/Constraint/FileExtensionConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileExtensionConstraint::getDefaultOption()

File

core/modules/file/src/Plugin/Validation/Constraint/FileExtensionConstraint.php, line 38

Class

FileExtensionConstraint
File extension constraint.

Namespace

Drupal\file\Plugin\Validation\Constraint

Code

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

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