Replace deprecated entity_get_display() function.
Before
entity_get_display('node', 'page', 'default');
entity_get_display('node', 'article', 'teaser');
After
\Drupal::service('entity_display.repository')->getViewDisplay('node', 'page');
\Drupal::service('entity_display.repository')->getViewDisplay('node', 'article', 'teaser');

CommentFileSizeAuthor
#2 3121896-2.patch1.05 KBShreevasa Tantry

Comments

Shreevasa Tantry created an issue. See original summary.

Shreevasa Tantry’s picture

Assigned: Shreevasa Tantry » Unassigned
Status: Active » Needs review
StatusFileSize
new1.05 KB

Please review the patch file.

boromino’s picture

Version: 8.x-1.x-dev » 2.0.0
Status: Needs review » Closed (duplicate)
Related issues: +#3146949: Automated Drupal 9 compatibility fixes