private function LinkTargetFieldWidget::getLinkItem in Link target 8
Getting link items.
Parameters
\Drupal\Core\Field\FieldItemListInterface $items: Returning of field items.
string $delta: Returning field delta with item.
Return value
\Drupal\link\LinkItemInterface Returning link items inteface.
1 call to LinkTargetFieldWidget::getLinkItem()
- LinkTargetFieldWidget::formElement in src/
Plugin/ Field/ FieldWidget/ LinkTargetFieldWidget.php - Returns the form for a single field widget.
File
- src/
Plugin/ Field/ FieldWidget/ LinkTargetFieldWidget.php, line 115
Class
- LinkTargetFieldWidget
- Plugin implementation of the 'link_target_field_widget' widget.
Namespace
Drupal\link_target\Plugin\Field\FieldWidgetCode
private function getLinkItem(FieldItemListInterface $items, $delta) {
return $items[$delta];
}