function UpdaterInterface::canUpdateDirectory

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Updater/UpdaterInterface.php \Drupal\Core\Updater\UpdaterInterface::canUpdateDirectory()
  2. 10 core/lib/Drupal/Core/Updater/UpdaterInterface.php \Drupal\Core\Updater\UpdaterInterface::canUpdateDirectory()
  3. 11.x 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: The 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 57

Class

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

Namespace

Drupal\Core\Updater

Code

public static function canUpdateDirectory($directory);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.