You are here

protected function ContactStorageExportService::formatLink in Contact Storage Export 8

Returns an absolute URL as a string value.

Parameters

\Drupal\link\LinkItemInterface $link_item: The link item to format.

Return value

string The URL.

1 call to ContactStorageExportService::formatLink()
ContactStorageExportService::getFormattedValue in src/ContactStorageExportService.php
Formats values of the given field.

File

src/ContactStorageExportService.php, line 157

Class

ContactStorageExportService
Provides a set of methods to export contact messages in CSV format.

Namespace

Drupal\contact_storage_export

Code

protected function formatLink(LinkItemInterface $link_item) {
  return $link_item
    ->getUrl()
    ->setAbsolute()
    ->toString();
}