TypeError: Argument 2 passed to Drupal\k8s\Entity\K8sNodeViewBuilder::__construct() must be an instance of Drupal\k8s\Entity\EntityTypeManagerInterface, instance of Drupal\Core\Entity\EntityTypeManager given, called in /vagrant_data/drupal_cloud/src/modules/cloud/modules/cloud_service_providers/k8s/src/Entity/K8sNodeViewBuilder.php on line 76 in Drupal\k8s\Entity\K8sNodeViewBuilder->__construct() (line 52 of /vagrant_data/drupal_cloud/src/modules/cloud/modules/cloud_service_providers/k8s/src/Entity/K8sNodeViewBuilder.php) #0 /vagrant_data/drupal_cloud/src/modules/cloud/modules/cloud_service_providers/k8s/src/Entity/K8sNodeViewBuilder.php(76): Drupal\k8s\Entity\K8sNodeViewBuilder->__construct(Object(Drupal\Core\Entity\ContentEntityType), Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\Core\Language\LanguageManager), Object(Drupal\Core\Theme\Registry), Object(Drupal\k8s\Service\CostFieldsRenderer), Object(Drupal\Core\Datetime\DateFormatter)) #1 /vagrant_data/drupal_cloud/src/core/lib/Drupal/Core/Entity/EntityTypeManager.php(288):

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Xiaohua Guan created an issue. See original summary.

Xiaohua Guan’s picture

Xiaohua Guan’s picture

Status: Active » Needs review

@yas

Please review the patch file. Thanks.

yas’s picture

Status: Needs review » Reviewed & tested by the community

@xiaohua-guan

Thank you for fixing the issue. I'll merge the patch to 8.x-2.x and close this issue as Fixed.

  • yas committed e7b651b on 8.x-2.x authored by Xiaohua Guan
    Issue #3102873 by Xiaohua Guan, yas: Fix the TypeError when viewing node...
yas’s picture

Status: Reviewed & tested by the community » Fixed
yas’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.