You are here

public function VfsThemeExtensionList::setExtensionDiscovery in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Theme/BaseThemeMissingTest.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/BaseThemeDefaultDeprecationTest.php, line 121

Class

VfsThemeExtensionList
Test theme extension list class.

Namespace

Drupal\KernelTests\Core\Theme

Code

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