1.20.x updater.inc | public static Updater::getProjectName($directory) |
Get 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 BackdropUpdaterInterface::getProjectName
File
- includes/
updater.inc, line 173 - Classes used for updating various files in the Backdrop webroot. These classes use a FileTransfer object to actually perform the operations. Normally, the FileTransfer is provided when the site owner is redirected to authorize.php as part of a…
Class
- Updater
- Base class for Updaters used in Backdrop.
Code
public static function getProjectName($directory) {
return backdrop_basename($directory);
}