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

partial_0 is still displayed even it is hidden in the display mode #223

Open
LOBsTerr opened this issue Jun 5, 2018 · 0 comments
Open
Labels

Comments

@LOBsTerr
Copy link
Contributor

LOBsTerr commented Jun 5, 2018

h3. Problem
When I render a message loading view mode presentation pro grammatically.

\Drupal::entityTypeManager()->getViewBuilder('message')->view($item, 'full');

It displays partial_0, even it is hidden. The same situation with other partials: partial_1 and etc.

h3. How to reproduce

  1. Create a new message template and add Message text
  2. Go to display and hide the partial.
  3. Load view mode using a snippet
\Drupal::entityTypeManager()->getViewBuilder('message')->view($item, 'full');
  1. Check the presentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants