public static function Updater::getProjectName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Updater/Updater.php \Drupal\Core\Updater\Updater::getProjectName()
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.
1 call to Updater::getProjectName()
- Updater::__construct in core/
lib/ Drupal/ Core/ Updater/ Updater.php - Constructs a new updater.
File
- core/
lib/ Drupal/ Core/ Updater/ Updater.php, line 163 - Contains \Drupal\Core\Updater\Updater.
Class
- Updater
- Defines the base class for Updaters used in Drupal.
Namespace
Drupal\Core\UpdaterCode
public static function getProjectName($directory) {
return drupal_basename($directory);
}