From cbf291f817257729df9627e01219ae0e1f5d6fe8 Mon Sep 17 00:00:00 2001 From: Steffen Schlaer Date: Tue, 8 Oct 2019 17:03:38 +0200 Subject: [PATCH] INREL-6556: Fix bad type hint in _infinite_paragraphs_get_parent_base_data() --- modules/infinite_paragraphs/infinite_paragraphs.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/infinite_paragraphs/infinite_paragraphs.module b/modules/infinite_paragraphs/infinite_paragraphs.module index be9d27b..ffadc26 100644 --- a/modules/infinite_paragraphs/infinite_paragraphs.module +++ b/modules/infinite_paragraphs/infinite_paragraphs.module @@ -277,7 +277,7 @@ function _infinite_paragraphs_view_mode_widget_alter(array &$element, $index) { } } -function _infinite_paragraphs_get_parent_base_data(\Drupal\Core\Entity\Entity $entity, &$variables) { +function _infinite_paragraphs_get_parent_base_data(EntityInterface $entity, &$variables) { if ($entity->getEntityTypeId() == 'node') { $node = $entity; $alias_path = \Drupal::service('path.alias_manager')->getAliasByPath('/node/' . $node->id());