Theme::postInstallTasks

public Theme::postInstallTasks() Returns an array of links to pages that should be visited post operation. Return value array Links which provide actions to take after the install is finished. Overrides Updater::postInstallTasks File core/lib/Drupal/Core/Updater/Theme.php, line 89 Class Theme Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code public function postInstallTasks() { // Since this

ThemeAccessCheck

Provides access checking for themes for routing and theme negotiation. Hierarchy class \Drupal\Core\Theme\ThemeAccessCheck implements AccessInterface File core/lib/Drupal/Core/Theme/ThemeAccessCheck.php, line 12 Namespace Drupal\Core\Theme Members Name Modifiers Type Description ThemeAccessCheck::$themeHandler protected property The theme handler. ThemeAccessCheck::access public function Checks access to the theme for routing. ThemeAccessCheck::checkAccess pu

ThemeAccessCheck::checkAccess

public ThemeAccessCheck::checkAccess($theme) Indicates whether the theme is accessible based on whether it is installed. Parameters string $theme: The name of a theme. Return value bool TRUE if the theme is installed, FALSE otherwise. File core/lib/Drupal/Core/Theme/ThemeAccessCheck.php, line 53 Class ThemeAccessCheck Provides access checking for themes for routing and theme negotiation. Namespace Drupal\Core\Theme Code public function checkAccess($theme) { $themes = $this->them

ThemeAccessCheck::$themeHandler

The theme handler. Type: \Drupal\Core\Extension\ThemeHandlerInterface File core/lib/Drupal/Core/Theme/ThemeAccessCheck.php, line 19 Class ThemeAccessCheck Provides access checking for themes for routing and theme negotiation. Namespace Drupal\Core\Theme Code protected $themeHandler;

Theme::postInstall

public Theme::postInstall() Performs actions after installation. Overrides Updater::postInstall File core/lib/Drupal/Core/Updater/Theme.php, line 80 Class Theme Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code public function postInstall() { // Update the theme info. clearstatcache(); \Drupal::service('theme_handler')->rebuildThemeData(); }

Theme::getRootDirectoryRelativePath

public static Theme::getRootDirectoryRelativePath() Returns the name of the root directory under which projects will be copied. Return value string A relative path to the root directory. Overrides UpdaterInterface::getRootDirectoryRelativePath File core/lib/Drupal/Core/Updater/Theme.php, line 42 Class Theme Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code public static function getRootDirector

Theme::canUpdateDirectory

static Theme::canUpdateDirectory($directory) 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. Overrides UpdaterInterface::canUpdateDirectory File core/lib/Drupal/Core/Updater/Theme.php, line 59 Class Theme Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code static function canU

Theme::isInstalled

public Theme::isInstalled() Checks if the project is installed. Return value bool Overrides UpdaterInterface::isInstalled File core/lib/Drupal/Core/Updater/Theme.php, line 49 Class Theme Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code public function isInstalled() { // Check if the theme exists in the file system, regardless of whether it // is enabled or not. $themes = \Drupal::state()

Theme::getInstallDirectory

public Theme::getInstallDirectory() Returns the directory where a theme should be installed. If the theme is already installed, drupal_get_path() will return a valid path and we should install it there. If we're installing a new theme, we always want it to go into /themes, since that's where all the documentation recommends users install their themes, and there's no way that can conflict on a multi-site installation, since the Update manager won't let you install a new theme if it's already fou

Theme::canUpdate

public static Theme::canUpdate($project_name) Determines whether this class can update the specified project. Parameters string $project_name: The project to check. Return value bool File core/lib/Drupal/Core/Updater/Theme.php, line 73 Class Theme Defines a class for updating themes using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code public static function canUpdate($project_name) { return (bool) drupal_get_path('theme', $projec