jhedstrom / DrupalDriver

A collection of drivers for controlling Drupal.
GNU General Public License v2.0
64 stars 95 forks source link

LinkHandler expects numeric indices #192

Open jhedstrom opened 6 years ago

jhedstrom commented 6 years ago

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             |
jonathanjfshaw commented 6 years ago

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.