public function MediaSubFormManagerInterface::forceFieldsAsOptional in Media Bulk Upload 8
Make sure the fields are optional, instead of required.
Parameters
array $elements: The form elements to check the required settings on.
Return value
$this MediaSubFormManager.
1 method overrides MediaSubFormManagerInterface::forceFieldsAsOptional()
- MediaSubFormManager::forceFieldsAsOptional in src/
MediaSubFormManager.php - Make sure the fields are optional, instead of required.
File
- src/
MediaSubFormManagerInterface.php, line 116
Class
- MediaSubFormManagerInterface
- Class MediaSubFormManager.
Namespace
Drupal\media_bulk_uploadCode
public function forceFieldsAsOptional(array &$elements);