Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Theme.php

function Theme::canUpdate

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 74

Class

Theme
Defines a class for updating themes.

Namespace

Drupal\Core\Updater

Code

public static function canUpdate($project_name) {
    return (bool) \Drupal::service('extension.list.theme')->getPath($project_name);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal