Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
16 Jan 2015 at 00:55 UTC
Updated:
28 Apr 2015 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonYeah, probably it would be better to find an implementation of hook_theme() from another module and replace it with that example. Or better yet, make a dummy implementation of the hook, and use a debugger to look at the value you get, and take an array element from that and put it into the documentation.
Comment #2
wadmiraal commentedI'll have a look at it.
Comment #3
wadmiraal commentedActually, the array structure is quite different. Block Content has a nice example we can use:
Updated docblock in patch.
Comment #4
jhodgdonThanks! Looks good to me.
Comment #5
kim.pepperWhile there are a number of new attributes, there is no example of using the 'file' attribute, which was the reason for the original issue.
Comment #6
wadmiraal commentedAs far as I can see, there is no
fileattribute. It was renamedincludes, it seems. At least, that's what a var_dump inhook_theme_registry_alter()tells us. Inhook_theme(), it is called file, though:Comment #8
alexpottDocs are not frozen in beta. Committed 7d80c96 and pushed to 8.0.x. Thanks!