function TestEntityTypeManager::setDiscovery
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityTypeManager::setDiscovery()
- 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityTypeManager::setDiscovery()
- 11.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityTypeManager::setDiscovery()
Sets the discovery for the manager.
Parameters
\Drupal\Component\Plugin\Discovery\DiscoveryInterface $discovery: The discovery object.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeManagerTest.php, line 424
Class
- TestEntityTypeManager
- Provides a test entity type manager.
Namespace
Drupal\Tests\Core\EntityCode
public function setDiscovery(DiscoveryInterface $discovery) {
$this->discovery = $discovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.