protected function EntityToTableRenderer::fieldIsRenderableContent in Reference Table Formatter 8
Same name and namespace in other branches
- 2.0.x src/EntityToTableRenderer.php \Drupal\reference_table_formatter\EntityToTableRenderer::fieldIsRenderableContent()
A helper to check if we should display this field.
Parameters
array $field: The field information.
Return value
bool TRUE if we should display the field otherwise FALSE.
File
- src/
EntityToTableRenderer.php, line 184
Class
- EntityToTableRenderer
- A service for turning entities into tables.
Namespace
Drupal\reference_table_formatterCode
protected function fieldIsRenderableContent(array $field) {
return isset($field['#items']) && $field['#items']
->getFieldDefinition()
->isDisplayConfigurable('view');
}