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.

File

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

Class

Updater
Defines the base class for Updaters used in Drupal.

Namespace

Drupal\Core\Updater

Code

1
2
3
public static function getProjectName($directory) {
  return drupal_basename($directory);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.