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

UID field being output in content variable #45

Open
drewbolles opened this issue Feb 14, 2016 · 3 comments
Open

UID field being output in content variable #45

drewbolles opened this issue Feb 14, 2016 · 3 comments

Comments

@drewbolles
Copy link

The UID field is being output with {{- content -}}. The author field is generally it's own variable, not print out with fields. I'm able to {{- content|without('uid') -}} in the meantime.

@dawehner
Copy link
Collaborator

Mh, really? Is that some special/custom entity type?

Node does its own thing in template_preprocess_node:

  $variables['author_name'] = drupal_render($variables['elements']['uid']);

but by default nothing should add it, afaik.

@drewbolles
Copy link
Author

internal_entities.page.inc line 29

Adds all children elements to the content array. This line seems to be where it's added. Other entities must be handling it differently.

Edit: Damnit, this is not the right module. I blame @Jaesin :) issue needs to be moved.

@Jaesin
Copy link
Owner

Jaesin commented Feb 16, 2016

LOL. @drewbolles its's still relevant here. internal_entities.page.inc was added by the console genereate:entity:ceb command.

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

3 participants