You are here

public static function UpdaterInterface::canUpdateDirectory in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Updater/UpdaterInterface.php \Drupal\Core\Updater\UpdaterInterface::canUpdateDirectory()

Determines if the Updater can handle the project provided in $directory.

Parameters

string $directory:

Return value

bool TRUE if the project is installed, FALSE if not.

2 methods override UpdaterInterface::canUpdateDirectory()
Module::canUpdateDirectory in core/lib/Drupal/Core/Updater/Module.php
Determines if the Updater can handle the project provided in $directory.
Theme::canUpdateDirectory in core/lib/Drupal/Core/Updater/Theme.php
Determines if the Updater can handle the project provided in $directory.

File

core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 56

Class

UpdaterInterface
Defines an interface for a class which can update a Drupal project.

Namespace

Drupal\Core\Updater

Code

public static function canUpdateDirectory($directory);