Skip to content

[generate:entity:content] added a generator for hook_theme_suggestion…#1952

Merged
jmolivas merged 1 commit into
hechoendrupal:masterfrom
renebakx:master
Mar 17, 2016
Merged

[generate:entity:content] added a generator for hook_theme_suggestion…#1952
jmolivas merged 1 commit into
hechoendrupal:masterfrom
renebakx:master

Conversation

@renebakx
Copy link
Copy Markdown

If you generate a content entity with bundles the hook_theme_suggestions_HOOK add support for extra twig template suggestions.

For example, your entity is named "segment" with a bundle named "inline-image".
The following extra template suggestions are passed to the render engine.

…s_HOOK.

If you generate a content entity with bundles the hook_theme_suggestions_HOOK add support for extra twig template suggestions.

For example, your entity is named "segment" with a bundle named "inline-image".
The following extra template suggestions are passed to the render engine.

<!-- FILE NAME SUGGESTIONS:
   * segment--4--default.html.twig
   * segment--4.html.twig
   * segment--inline-image--default.html.twig
   * segment--inline-image.html.twig
   * segment--default.html.twig
   * segment.html.twig
-->
@jmolivas jmolivas modified the milestone: 0.10.13 Feb 21, 2016
@jmolivas
Copy link
Copy Markdown
Member

@renebakx: thanks for the PR.

I did some changes and sent a new PR #2028 including your changes + few updates.

@jmolivas
Copy link
Copy Markdown
Member

As a note I can see on the commit message https://github.com/hechoendrupal/DrupalConsole/pull/1952/commits your user seems like is missing some configurations, maybe your email https://help.github.com/articles/setting-your-username-in-git/

@jmolivas jmolivas merged commit 77dd647 into hechoendrupal:master Mar 17, 2016
@renebakx
Copy link
Copy Markdown
Author

thanks for the heads up :) Recently got a new machine, must have overlooked the complete setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants