--- a/src/Api.php +++ b/src/Api.php @@ -5,7 +5,7 @@ use Drupal\Core\Cache\Cache; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; -use Drupal\Core\Entity\EntityTypeManager; +use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Path\PathValidatorInterface; use Drupal\Core\Session\AccountInterface; use Drupal\editoria11y\Exception\Editoria11yApiException; @@ -33,7 +33,7 @@ /** * The manager property. */ - protected EntityTypeManager $manager; + protected EntityTypeManagerInterface $manager; /** * The configuration factory. @@ -56,14 +56,14 @@ * The current user. * @param \Drupal\Core\Database\Connection $connection * The database connection. - * @param \Drupal\Core\Entity\EntityTypeManager $manager + * @param \Drupal\Core\Entity\EntityTypeManagerInterface $manager * The entity type manager. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The configuration factory. * @param \Drupal\Core\Path\PathValidatorInterface $path_validator * The path validator service. */ - public function __construct(AccountInterface $account, Connection $connection, EntityTypeManager $manager, ConfigFactoryInterface $config_factory, PathValidatorInterface $path_validator) { + public function __construct(AccountInterface $account, Connection $connection, EntityTypeManagerInterface $manager, ConfigFactoryInterface $config_factory, PathValidatorInterface $path_validator) { $this->account = $account; $this->connection = $connection; $this->manager = $manager;