You are here

public static function YamlFormAdminSettingsForm::validateExtensions in YAML Form 8

Wrapper for FileItem::validateExtensions.

File

src/Form/YamlFormAdminSettingsForm.php, line 720

Class

YamlFormAdminSettingsForm
Configure form admin settings for this site.

Namespace

Drupal\yamlform\Form

Code

public static function validateExtensions($element, FormStateInterface $form_state) {
  if (class_exists('\\Drupal\\file\\Plugin\\Field\\FieldType\\FileItem')) {
    FileItem::validateExtensions($element, $form_state);
  }
}