You are here

public function TestDevelGeneratePluginManager::setDiscovery in Devel 8.3

Same name and namespace in other branches
  1. 8.2 devel_generate/tests/src/Unit/DevelGenerateManagerTest.php \Drupal\Tests\devel_generate\Unit\TestDevelGeneratePluginManager::setDiscovery()
  2. 4.x devel_generate/tests/src/Unit/DevelGenerateManagerTest.php \Drupal\Tests\devel_generate\Unit\TestDevelGeneratePluginManager::setDiscovery()

Sets the discovery for the manager.

Parameters

\Drupal\Component\Plugin\Discovery\DiscoveryInterface $discovery: The discovery object.

File

devel_generate/tests/src/Unit/DevelGenerateManagerTest.php, line 82

Class

TestDevelGeneratePluginManager
Provides a testing version of DevelGeneratePluginManager with an empty constructor.

Namespace

Drupal\Tests\devel_generate\Unit

Code

public function setDiscovery(DiscoveryInterface $discovery) {
  $this->discovery = $discovery;
}