Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinkHandler expects numeric indices #192

Open
jhedstrom opened this issue Jun 8, 2018 · 1 comment
Open

LinkHandler expects numeric indices #192

jhedstrom opened this issue Jun 8, 2018 · 1 comment

Comments

@jhedstrom
Copy link
Owner

jhedstrom commented Jun 8, 2018

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants