Commit 552cdd26 authored by catch's avatar catch

Issue #2191655 by Berdir: Type hint $entity_type everywhere it is an instance...

Issue #2191655 by Berdir: Type hint $entity_type everywhere it is an instance of EntityTypeInterface.
parent 971135d0
......@@ -8,6 +8,7 @@
namespace Drupal\content_translation;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Language\Language;
/**
......@@ -35,7 +36,7 @@ class ContentTranslationController implements ContentTranslationControllerInterf
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The info array of the given entity type.
*/
public function __construct($entity_type) {
public function __construct(EntityTypeInterface $entity_type) {
$this->entityTypeId = $entity_type->id();
$this->entityType = $entity_type;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment