ThemeEngineExtensionList.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Extension/ThemeEngineExtensionList.php
  2. 8.9.x core/lib/Drupal/Core/Extension/ThemeEngineExtensionList.php
  3. 11.x core/lib/Drupal/Core/Extension/ThemeEngineExtensionList.php

Namespace

Drupal\Core\Extension

File

core/lib/Drupal/Core/Extension/ThemeEngineExtensionList.php

View source
<?php

namespace Drupal\Core\Extension;


/**
 * Provides a list of available theme engines.
 *
 * @internal
 *   This class is not yet stable and therefore there are no guarantees that the
 *   internal implementations including constructor signature and protected
 *   properties / methods will not change over time. This will be reviewed after
 *   https://www.drupal.org/project/drupal/issues/2940481
 */
class ThemeEngineExtensionList extends ExtensionList {
    
    /**
     * {@inheritdoc}
     */
    protected $defaults = [
        'dependencies' => [],
        'description' => '',
        'package' => 'Other',
        'version' => NULL,
        'php' => \Drupal::MINIMUM_PHP,
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function getInstalledExtensionNames() {
        // Theme engines do not have an 'install' state, so return names of all
        // discovered theme engines.
        return array_keys($this->extensions);
    }

}

Classes

Title Deprecated Summary
ThemeEngineExtensionList Provides a list of available theme engines.

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