You are here

private static function FFTFormatter::isReference in Field Formatter Template 8

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

Check is reference type.

Parameters

string $type: The type of field.

Return value

bool Return value.

2 calls to FFTFormatter::isReference()
FFTFormatter::prepareView in src/Plugin/Field/FieldFormatter/FFTFormatter.php
Loads the entities referenced in that field across all the entities being viewed.
FFTFormatter::viewElements in src/Plugin/Field/FieldFormatter/FFTFormatter.php
Builds a renderable array for a field value.

File

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

Class

FFTFormatter
Plugin implementation of the 'fft_formatter' formatter.

Namespace

Drupal\fft\Plugin\Field\FieldFormatter

Code

private static function isReference($type) {
  return substr($type, 0, 16) === 'entity_reference';
}