public function TestDevelGeneratePluginManager::setDiscovery in Devel 8
Sets the discovery for the manager.
Parameters
\Drupal\Component\Plugin\Discovery\DiscoveryInterface $discovery: The discovery object.
File
- devel_generate/
tests/ src/ DevelGenerateManagerTest.php, line 90
Class
- TestDevelGeneratePluginManager
- Provides a testing version of DevelGeneratePluginManager with an empty constructor.
Namespace
Drupal\Tests\devel_generateCode
public function setDiscovery(DiscoveryInterface $discovery) {
$this->discovery = $discovery;
}