Skip to content

GitRepositoryLink

Links to the repository, with its path (owner/name) as the text.


  • Full name: \Drupal\git_field\Plugin\Field\FieldFormatter\GitRepositoryLink
  • Parent class: FormatterBase

Methods

viewElements

{@inheritdoc}

public viewElements(\Drupal\Core\Field\FieldItemListInterface $items, mixed $langcode): array

Parameters:

Parameter Type Description
$items \Drupal\Core\Field\FieldItemListInterface
$langcode mixed