- Issue created by @dougiep
- 🇮🇱Israel jsacksick
Ok the way this should be handled is like the following to support earlier versions of Drupal:
$constraint_definitions = $this->constraintManager->getDefinitions(); if (isset($constraint_definitions['FileExtension'])) { $form['csv']['#upload_validators'] = [ 'FileExtension' => ['extensions' => 'csv'], ]; } else { $form['csv']['#upload_validators'] = [ 'file_validate_extensions' => ['csv'], ]; }
- Merge request !23Issue #3523854: Invoice Logo - The "file_validate_extensions" plugin does not exist. → (Merged) created by jsacksick
-
jsacksick →
committed 34924cfb on 8.x-2.x
Issue #3523854 by jsacksick, dougiep: Invoice Logo - The "...
-
jsacksick →
committed 34924cfb on 8.x-2.x