public function MediaSubFormManager::validateMediaFormDisplayUse in Media Bulk Upload 8
Check if the media form fields should be used in the upload form.
Parameters
\Drupal\media_bulk_upload\Entity\MediaBulkConfigInterface $mediaBulkConfig: The media bulk configuration entity.
Return value
bool True if the media form fields should be used.
Overrides MediaSubFormManagerInterface::validateMediaFormDisplayUse
File
- src/
MediaSubFormManager.php, line 254
Class
- MediaSubFormManager
- Class MediaSubFormManager.
Namespace
Drupal\media_bulk_uploadCode
public function validateMediaFormDisplayUse(MediaBulkConfigInterface $mediaBulkConfig) {
$formMode = $mediaBulkConfig
->get('form_mode');
if (!empty($formMode)) {
return TRUE;
}
return FALSE;
}