You are here

public function ImageItem::isDisplayed in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/image/src/Plugin/Field/FieldType/ImageItem.php \Drupal\image\Plugin\Field\FieldType\ImageItem::isDisplayed()

Determines whether an item should be displayed when rendering the field.

Return value

bool TRUE if the item should be displayed, FALSE if not.

Overrides FileItem::isDisplayed

File

core/modules/image/src/Plugin/Field/FieldType/ImageItem.php, line 497

Class

ImageItem
Plugin implementation of the 'image' field type.

Namespace

Drupal\image\Plugin\Field\FieldType

Code

public function isDisplayed() {

  // Image items do not have per-item visibility settings.
  return TRUE;
}