You are here

public function VfsThemeExtensionList::setExtensionDiscovery in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Theme/BaseThemeDefaultDeprecationTest.php \Drupal\KernelTests\Core\Theme\VfsThemeExtensionList::setExtensionDiscovery()

Sets the extension discovery.

Parameters

\Drupal\Core\Extension\ExtensionDiscovery $discovery: The extension discovery.

Return value

self

File

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

Class

VfsThemeExtensionList
Test theme extension list class.

Namespace

Drupal\KernelTests\Core\Theme

Code

public function setExtensionDiscovery(ExtensionDiscovery $discovery) {
  $this->extensionDiscovery = $discovery;
  return $this;
}