Hot answers tagged

1

That function is just a wrapper for this function: https://api.drupal.org/api/views/views.module/function/views_set_current_view/7.x-3.x which will just return a reference to a static code cache. Conclusion: no view gets run, it's just grabbing a copy of what's already been created. In general, views is very efficient in such cases. But I'd tend to agree ...


1

In the Drupal 8 forms api, any form element attributes not directly supported by the API get stuffed into the '#attributes' FormElement property. This property supports the entire HTML spec for form element tag html attributes, as far as I know. It's the catch-all for anything the Drupal development folks don't feel the need to directly define and model. $...


Only top voted, non community-wiki answers of a minimum length are eligible