You are here

public static function WebformAdminConfigElementsForm::validateExtensions in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/AdminConfig/WebformAdminConfigElementsForm.php \Drupal\webform\Form\AdminConfig\WebformAdminConfigElementsForm::validateExtensions()

Wrapper for FileItem::validateExtensions.

File

src/Form/AdminConfig/WebformAdminConfigElementsForm.php, line 572

Class

WebformAdminConfigElementsForm
Configure webform admin settings for elements.

Namespace

Drupal\webform\Form\AdminConfig

Code

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