You are here

class VfsThemeExtensionList in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Theme/BaseThemeDefaultDeprecationTest.php \Drupal\KernelTests\Core\Theme\VfsThemeExtensionList
  2. 9 core/tests/Drupal/KernelTests/Core/Theme/BaseThemeMissingTest.php \Drupal\KernelTests\Core\Theme\VfsThemeExtensionList

Test theme extension list class.

Hierarchy

Expanded class hierarchy of VfsThemeExtensionList

File

core/tests/Drupal/KernelTests/Core/Theme/BaseThemeMissingTest.php, line 84

Namespace

Drupal\KernelTests\Core\Theme
View 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