public function Updater::__construct

Constructs a new updater.

Parameters

string $source: Directory to install from.

File

drupal/core/lib/Drupal/Core/Updater/Updater.php, line 30
Definition of Drupal\Core\Updater\Updater.

Class

Updater
Defines the base class for Updaters used in Drupal.

Namespace

Drupal\Core\Updater

Code

public function __construct($source) {
  $this->source = $source;
  $this->name = self::getProjectName($source);
  $this->title = self::getProjectTitle($source);
}