Part of #2010184: [meta] convert ‘uri_callback’ entities param to EntityInterface::uri() method.

Needs to implement Plugin\Entity\PictureMapping.php uri() method and drop picture_mapping_uri() function replacing it's calls to $entity->uri() and clean-up uri_callback at entity annotation.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

InternetDevels’s picture

Assigned: InternetDevels » Unassigned
kgoel’s picture

Assigned: Unassigned » kgoel

Going to work on this.

kgoel’s picture

Status: Active » Needs review
FileSize
1.68 KB
tstoeckler’s picture

Status: Needs review » Needs work
+++ b/core/modules/picture/lib/Drupal/picture/Plugin/Core/Entity/PictureMapping.php
@@ -161,5 +160,17 @@ public function hasMappings() {
+  ¶

Trailing whitespace. Otherwise, looks great!

hussainweb’s picture

Fixing whitespace.

hussainweb’s picture

Status: Needs work » Needs review
tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Awesome!

To be extra sure I grepped for picture_mapping_set_uri, but there's nothing there...

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 33bee3c and pushed to 8.x. Thanks!

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

Eli-T’s picture

Component: picture.module » responsive_image.module
Issue summary: View changes