function LegacyVersionUtility::isLegacyVersion
Determines if a version is legacy.
Parameters
string $version: The version number.
Return value
bool TRUE if the version is a legacy version number, otherwise FALSE.
File
-
core/
modules/ package_manager/ src/ LegacyVersionUtility.php, line 79
Class
- LegacyVersionUtility
- A utility class for dealing with legacy version numbers.
Namespace
Drupal\package_managerCode
private static function isLegacyVersion(string $version) : bool {
return stripos($version, '8.x-') === 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.