Drupal Association members fund grants that make connections all over the world.
File field items need some logic to determine whether they should be displayed when rendering the field values.
- This logic is currently centralized in an isDisplayed($item) helper method in the FileFormatterBase class.
It is however inherent to the $item and not to the formatter, so this method would be better off on the $item directly.
We can do this now that has landed and we have a FileItem class.
- It is not used consistently throughout all file formatters (some still directly check the value of $item->display, which is not strictly equivalent)
Change record https://drupal.org/node/2047939 will need to be updated if this goes in.
PASSED: [[SimpleTest]]: [MySQL] 59,278 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 58,624 pass(es). View
FAILED: [[SimpleTest]]: [MySQL] 59,132 pass(es), 4 fail(s), and 0 exception(s). View