Loading core/modules/update/src/ModuleVersion.php +7 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,10 @@ final class ModuleVersion { * * @return \Drupal\update\ModuleVersion * The module version instance. * * @throws \UnexpectedValueException * Thrown when a legacy version string has a core prefix other than "8.x-" * for example, version strings such as "7.x-1.0" are not supported. */ public static function createFromVersionString($version_string) { $original_version = $version_string; Loading Loading @@ -105,6 +109,9 @@ private function __construct($major_version, $version_extra) { * * @return \Drupal\update\ModuleVersion * The module version instance. * * @throws \UnexpectedValueException * Thrown when $branch is not valid because it does not end in ".". */ public static function createFromSupportBranch($branch) { if (substr($branch, -1) !== '.') { Loading Loading
core/modules/update/src/ModuleVersion.php +7 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,10 @@ final class ModuleVersion { * * @return \Drupal\update\ModuleVersion * The module version instance. * * @throws \UnexpectedValueException * Thrown when a legacy version string has a core prefix other than "8.x-" * for example, version strings such as "7.x-1.0" are not supported. */ public static function createFromVersionString($version_string) { $original_version = $version_string; Loading Loading @@ -105,6 +109,9 @@ private function __construct($major_version, $version_extra) { * * @return \Drupal\update\ModuleVersion * The module version instance. * * @throws \UnexpectedValueException * Thrown when $branch is not valid because it does not end in ".". */ public static function createFromSupportBranch($branch) { if (substr($branch, -1) !== '.') { Loading