Closed (fixed)
Project:
Dynamic Entity Reference
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2015 at 22:40 UTC
Updated:
24 Jan 2015 at 03:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirComment #2
jibranWe don't have any tests for formatters right now.
So why always true?
Can't we do something like \Drupal::entityManager()->getDefinition($target_type)->hasViewBuilderClass(); here?
Comment #3
berdirWhat $target_type?
I guess we could loop over all enabled entity types and return TRUE. or all of them?
Comment #4
jibranWell in this return TRUE make sense
Perhaps in #2377841: Allow user to chose per entity type formatter. we can change that.
Comment #6
jibranThank you for th bug report and patch committed and pushed.
Comment #7
jibranAdded major task #2405013: Add tests for all the formatters for formatter tests.