You are here

public function UpdateMetadata::setFromVersion in Automatic Updates 8

Set the current project version.

Parameters

string $fromVersion: The current project version.

Return value

\Drupal\automatic_updates\UpdateMetadata The update metadata.

File

src/UpdateMetadata.php, line 124

Class

UpdateMetadata
Transfer object to encapsulate the details for an update.

Namespace

Drupal\automatic_updates

Code

public function setFromVersion($fromVersion) {
  $this->fromVersion = $fromVersion;
  return $this;
}