protected function FlaggedEntityFieldItemList::computeValue in Flag 8.4
Returns the label as the field item.
Overrides ComputedItemListTrait::computeValue
File
- src/
Plugin/ Field/ FlaggedEntityFieldItemList.php, line 18
Class
- FlaggedEntityFieldItemList
- A computed entity reference field item list.
Namespace
Drupal\flag\Plugin\FieldCode
protected function computeValue() {
$this->list[0] = $this
->createItem(0, $this
->getEntity()->value);
}