protected function MediaElementConfigForm::getVersionList in MediaElement 8
Gets the list of available version numbers for the library.
Return value
string[] The array of version strings.
1 call to MediaElementConfigForm::getVersionList()
- MediaElementConfigForm::buildForm in src/
Form/ MediaElementConfigForm.php - Form constructor.
File
- src/
Form/ MediaElementConfigForm.php, line 69
Class
- MediaElementConfigForm
- Configuration form for MediaElement.js module.
Namespace
Drupal\mediaelement\FormCode
protected function getVersionList() {
$data = $this
->getApiData([
'fields' => 'assets',
]);
return array_map(function ($asset) {
return $asset->version;
}, $data->assets);
}