function ThemeHandlerInterface::getThemeDirectories

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getThemeDirectories()
  2. 10 core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getThemeDirectories()
  3. 9 core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getThemeDirectories()
  4. 8.9.x core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php \Drupal\Core\Extension\ThemeHandlerInterface::getThemeDirectories()

Returns an array of directories for all installed themes.

Useful for tasks such as finding a file that exists in all theme directories.

Return value

array An associative array containing the directory path for all installed themes. The array is keyed by the theme name.

File

core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 141

Class

ThemeHandlerInterface
Manages the list of available themes.

Namespace

Drupal\Core\Extension

Code

public function getThemeDirectories();

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