Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By mfernea on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Summary
- EntityManagerInterface is created and it's implemented by EntityManager.
- All typehints should use EntityManagerInterface instead of EntityManager.
Before
use Drupal\Core\Entity\EntityManager;
/**
* Function description.
*
* @param \Drupal\Core\Entity\EntityManager $entity_manager
* The entity manager.
*/
function function_name(EntityManager $entity_manager) {
After
use Drupal\Core\Entity\EntityManagerInterface;
/**
* Function description.
*
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager.
*/
function function_name(EntityManagerInterface $entity_manager) {
Impacts:
Module developers