You are here

public function FFTFormatter::view in Field Formatter Template 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/FFTFormatter.php \Drupal\fft\Plugin\Field\FieldFormatter\FFTFormatter::view()

Overrides EntityReferenceFormatterBase::view

See also

::prepareView()

::getEntitiestoView()

File

src/Plugin/Field/FieldFormatter/FFTFormatter.php, line 187

Class

FFTFormatter
Plugin implementation of the 'fft_formatter' formatter.

Namespace

Drupal\fft\Plugin\Field\FieldFormatter

Code

public function view(FieldItemListInterface $items, $langcode = NULL) {
  $view = parent::view($items, $langcode);
  if ($this->settings['reset'] === '1') {
    unset($view['#theme']);
  }
  return $view;
}