Skip to content
Snippets Groups Projects
Commit 802b06b1 authored by catch's avatar catch
Browse files

Issue #3142943 by himanshu_sindhwani, ankitsingh0188, jyotimishra123,...

Issue #3142943 by himanshu_sindhwani, ankitsingh0188, jyotimishra123, Kingdutch, ravi.shankar, dpovshed: Incorrect deprecation notice for EntityForm::setEntityManager
parent 3915b01a
No related branches found
No related tags found
2 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations
......@@ -461,7 +461,7 @@ public function setModuleHandler(ModuleHandlerInterface $module_handler) {
* {@inheritdoc}
*/
public function setEntityManager(EntityManagerInterface $entity_manager) {
@trigger_error('EntityForm::setEntityTypeManager() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use EntityFormInterface::setEntityTypeManager() instead. See https://www.drupal.org/node/2549139', E_USER_DEPRECATED);
@trigger_error('EntityForm::setEntityManager() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use EntityFormInterface::setEntityTypeManager() instead. See https://www.drupal.org/node/2549139', E_USER_DEPRECATED);
$this->privateEntityManager = $entity_manager;
return $this;
}
......
......@@ -235,7 +235,7 @@ public function testGetEntityFromRouteMatchAddEntity() {
*
* @group legacy
*
* @expectedDeprecation EntityForm::setEntityTypeManager() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use EntityFormInterface::setEntityTypeManager() instead. See https://www.drupal.org/node/2549139
* @expectedDeprecation EntityForm::setEntityManager() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use EntityFormInterface::setEntityTypeManager() instead. See https://www.drupal.org/node/2549139
*/
public function testSetEntityManager() {
$this->entityForm->setEntityManager($this->prophesize(EntityManager::class)->reveal());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment