Updater::getProjectName

public static function Updater::getProjectName

public static Updater::getProjectName($directory)

Gets the name of the project directory (basename).

@todo It would be nice, if projects contained an info file which could provide their canonical name.

Parameters

string $directory:

Return value

string The name of the project.

Overrides UpdaterInterface::getProjectName

File

core/lib/Drupal/Core/Updater/Updater.php, line 158

Class