- Issue created by @joewickert
- π¬π§United Kingdom tonyhrx
The dependency for the entity display repository service is not being assigned to a class property. Here's a patch.
--- a/CivicrmEntityAddressLeafletMap.php +++ b/CivicrmEntityAddressLeafletMap.php @@ -38,6 +38,13 @@ class CivicrmEntityAddressLeafletMap extends LeafletMap implements ContainerFactor */ class CivicrmEntityAddressLeafletMap extends LeafletMap implements ContainerFactoryPluginInterface { + /** + * The entity display repository. + * + * @var \Drupal\Core\Entity\EntityDisplayRepositoryInterface + */ + protected $entityDisplay; + /** * {@inheritdoc} */ @@ -56,7 +63,10 @@ class CivicrmEntityAddressLeafletMap extends LeafletMap implements ContainerFactor $container->get('link_generator'), $container->get('plugin.manager.field.field_type') ); - return new self( + + // Assign the entity display repository service to the class property + $instance->entityDisplay = $container->get('entity_display.repository'); + + return $instance; }
- πΊπΈUnited States markusa
I resolved this via this change:
https://git.drupalcode.org/project/civicrm_entity_leaflet/-/commit/c90cf...Added Drupal 11 support and require leaflet 10.2.25 in a new alpha3 release
Automatically closed - issue fixed for 2 weeks with no activity.