class VfsThemeExtensionList
Test theme extension list class.
Hierarchy
- class \Drupal\Core\Extension\ExtensionList- class \Drupal\Core\Extension\ThemeExtensionList extends \Drupal\Core\Extension\ExtensionList- class \Drupal\KernelTests\Core\Theme\VfsThemeExtensionList extends \Drupal\Core\Extension\ThemeExtensionList
 
 
- class \Drupal\Core\Extension\ThemeExtensionList extends \Drupal\Core\Extension\ExtensionList
Expanded class hierarchy of VfsThemeExtensionList
File
- 
              core/tests/ Drupal/ KernelTests/ Core/ Theme/ BaseThemeMissingTest.php, line 84 
Namespace
Drupal\KernelTests\Core\ThemeView source
class VfsThemeExtensionList extends ThemeExtensionList {
  
  /**
   * The extension discovery for this extension list.
   *
   * @var \Drupal\Core\Extension\ExtensionDiscovery
   */
  protected $extensionDiscovery;
  
  /**
   * Sets the extension discovery.
   *
   * @param \Drupal\Core\Extension\ExtensionDiscovery $discovery
   *   The extension discovery.
   *
   * @return self
   */
  public function setExtensionDiscovery(ExtensionDiscovery $discovery) {
    $this->extensionDiscovery = $discovery;
    return $this;
  }
  
  /**
   * {@inheritdoc}
   */
  public function getExtensionDiscovery() {
    return $this->extensionDiscovery;
  }
}Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides | 
|---|---|---|---|---|---|
| ExtensionList::$addedPathNames | protected | property | A list of extension folder names directly added in code (not discovered). | ||
| ExtensionList::$cache | protected | property | The cache. | ||
| ExtensionList::$extensionInfo | protected | property | Static caching for extension info. | ||
| ExtensionList::$extensions | protected | property | The cached extensions. | ||
| ExtensionList::$infoParser | protected | property | The info parser. | ||
| ExtensionList::$installProfile | protected | property | The install profile used by the site. | ||
| ExtensionList::$moduleHandler | protected | property | The module handler. | ||
| ExtensionList::$pathNames | protected | property | A list of extension folder names keyed by extension name. | ||
| ExtensionList::$root | protected | property | The app root. | ||
| ExtensionList::$state | protected | property | The state store. | ||
| ExtensionList::$type | protected | property | The type of the extension: "module", "theme" or "profile". | ||
| ExtensionList::checkIncompatibility | public | function | Tests the compatibility of an extension. | ||
| ExtensionList::doScanExtensions | protected | function | Scans the available extensions. | 1 | |
| ExtensionList::exists | public | function | Determines if an extension exists in the filesystem. | ||
| ExtensionList::get | public | function | Returns a single extension. | ||
| ExtensionList::getAllAvailableInfo | public | function | Returns an array of info files information of available extensions. | ||
| ExtensionList::getAllInstalledInfo | public | function | Returns an array of info files information of installed extensions. | ||
| ExtensionList::getExtensionInfo | public | function | Returns information about a specified extension. | ||
| ExtensionList::getInfoCacheId | protected | function | Returns the extension info cache ID. | ||
| ExtensionList::getList | public | function | Returns all available extensions. | ||
| ExtensionList::getListCacheId | protected | function | Returns the extension list cache ID. | ||
| ExtensionList::getName | public | function | Returns the human-readable name of the extension. | ||
| ExtensionList::getPath | public | function | Gets the path to an extension of a specific type (module, theme, etc.). | ||
| ExtensionList::getPathname | public | function | Gets the info file path for an extension. | ||
| ExtensionList::getPathnames | public | function | Returns a list of extension file paths keyed by machine name. | ||
| ExtensionList::getPathnamesCacheId | protected | function | Returns the extension filenames cache ID. | ||
| ExtensionList::recalculateInfo | protected | function | Generates the information from .info.yml files for extensions of this type. | ||
| ExtensionList::recalculatePathnames | protected | function | Generates a sorted list of .info.yml file locations for all extensions. | ||
| ExtensionList::setPathname | public | function | Sets the pathname for an extension. | ||
| ExtensionList::sortByName | public static | function | Array sorting callback; sorts extensions by their name. | ||
| ThemeExtensionList::$configFactory | protected | property | The config factory. | ||
| ThemeExtensionList::$defaults | protected | property | Default values to be merged into *.info.yml file arrays. | Overrides ExtensionList::$defaults | |
| ThemeExtensionList::$engineList | protected | property | The theme engine list needed by this theme list. | ||
| ThemeExtensionList::$installedThemes | protected | property | The list of installed themes. | ||
| ThemeExtensionList::createExtensionInfo | protected | function | Creates the info value for an extension object. | Overrides ExtensionList::createExtensionInfo | |
| ThemeExtensionList::doGetBaseThemes | protected | function | Finds the base themes for the specific theme. | ||
| ThemeExtensionList::doList | protected | function | Builds the list of extensions. | Overrides ExtensionList::doList | |
| ThemeExtensionList::fillInSubThemeData | protected | function | Fills in data for themes that are also sub-themes. | ||
| ThemeExtensionList::getBaseThemes | public | function | Finds all the base themes for the specified theme. | ||
| ThemeExtensionList::getInstalledExtensionNames | protected | function | Returns a list of machine names of installed extensions. | Overrides ExtensionList::getInstalledExtensionNames | |
| ThemeExtensionList::reset | public | function | Resets the stored extension list. | Overrides ExtensionList::reset | |
| ThemeExtensionList::__construct | public | function | Constructs a new ThemeExtensionList instance. | Overrides ExtensionList::__construct | |
| VfsThemeExtensionList::$extensionDiscovery | protected | property | The extension discovery for this extension list. | ||
| VfsThemeExtensionList::getExtensionDiscovery | public | function | Returns the extension discovery. | Overrides ExtensionList::getExtensionDiscovery | |
| VfsThemeExtensionList::setExtensionDiscovery | public | function | Sets the extension discovery. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
