DrupalDriver icon indicating copy to clipboard operation
DrupalDriver copied to clipboard

LinkHandler expects numeric indices

Open jhedstrom opened this issue 7 years ago • 1 comments

This code in LinkHandler expects numeric indices

      $return[] = array(
        'options' => $options,
        'title' => $value[0],
        'uri' => $value[1],
      );

while the Drupal Extension actually allows passing in the proper entity properties:

| field_foo:uri   | http://example |
| field_foo:title | My link             |

jhedstrom avatar Jun 08 '18 18:06 jhedstrom

Yeah, the handlers have got some nasty idiosyncratic variations in how they expect properties to come to them. I had to do some awkward dancing to maintain BC on some of the field plugins.

jonathanjfshaw avatar Aug 27 '18 11:08 jonathanjfshaw