You are here

public function LingotekTranslationStatusesFormatter::viewElements in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  2. 4.0.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  3. 3.0.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  4. 3.1.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  5. 3.2.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  6. 3.3.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  7. 3.5.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  8. 3.6.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  9. 3.7.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()
  10. 3.8.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::viewElements()

Builds a renderable array for a field value.

Parameters

\Drupal\Core\Field\FieldItemListInterface $items: The field values to be rendered.

string $langcode: The language that should be used to render the field.

Return value

array A renderable array for $items, as an array of child elements keyed by consecutive numeric indexes starting from 0.

Overrides FormatterInterface::viewElements

File

src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php, line 93

Class

LingotekTranslationStatusesFormatter
Plugin implementation of the 'lingotek_translation_statuses' formatter.

Namespace

Drupal\lingotek\Plugin\Field\FieldFormatter

Code

public function viewElements(FieldItemListInterface $items, $langcode) {

  // We need to implement this, but the ::view() method itself is hacking its
  // way around so this is never called.
  return FALSE;
}