function archiver_get_extensions
Same name in other branches
- 7.x includes/common.inc \archiver_get_extensions()
Returns a string of supported archive extensions.
Return value
string A space-separated string of extensions suitable for use by the file validation system.
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Archiver\ArchiverManager::getExtensions() instead.
See also
https://www.drupal.org/node/2999951
1 call to archiver_get_extensions()
- LegacyFunctionsTest::testArchiverGetExtensions in core/
tests/ Drupal/ KernelTests/ Core/ Common/ LegacyFunctionsTest.php - @expectedDeprecation archiver_get_extensions() is deprecated in Drupal 8.8.0 and will be removed in Drupal 9.0.0. Use \Drupal\Core\Archiver\ArchiverManager::getExtensions() instead. See https://www.drupal.org/node/2999951
File
-
core/
includes/ common.inc, line 1177
Code
function archiver_get_extensions() {
@trigger_error('archiver_get_extensions() is deprecated in Drupal 8.8.0 and will be removed in Drupal 9.0.0. Use \\Drupal\\Core\\Archiver\\ArchiverManager::getExtensions() instead. See https://www.drupal.org/node/2999951', E_USER_DEPRECATED);
return \Drupal::service('plugin.manager.archiver')->getExtensions();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.