plugin-drupal-twig-components icon indicating copy to clipboard operation
plugin-drupal-twig-components copied to clipboard

Make the Attributes parameter have a default param

Open RedLucas opened this issue 8 years ago • 3 comments

I ran into an issue with this because it was expecting a third parameter, which isn't necessarily necessary.

RedLucas avatar Jun 30 '17 00:06 RedLucas

what we use instead of NULL is just an empty array = []

waako avatar Mar 19 '18 21:03 waako

You're absolutely right, an empty array would definitely be a better option. I updated the PR.

RedLucas avatar Mar 19 '18 21:03 RedLucas

Glad that was helpful 😄

waako avatar Mar 19 '18 23:03 waako