function EntityFormDisplayAccessControlHandlerTest::getEntityTypeManager
Returns a mock Entity Type Manager.
Return value
\Drupal\Core\Entity\EntityTypeManagerInterface The mocked entity type manager.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ Access/ EntityFormDisplayAccessControlHandlerTest.php, line 82
Class
- EntityFormDisplayAccessControlHandlerTest
- Tests Drupal\Core\Entity\Entity\Access\EntityFormDisplayAccessControlHandler.
Namespace
Drupal\Tests\Core\Entity\AccessCode
protected function getEntityTypeManager() {
$entity_type_manager = $this->prophesize(EntityTypeManagerInterface::class);
return $entity_type_manager->reveal();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.