You are here

public function PlatformBase::generateUrl in Social Media Links Block and Field 8.2

Generates the final url for the output.

Parameters

\Drupal\Core\Url $url: A Url object with the full plattform url.

Return value

string The url to the platform (with the user value).

Overrides PlatformInterface::generateUrl

File

src/PlatformBase.php, line 85

Class

PlatformBase
Base class for platform.

Namespace

Drupal\social_media_links

Code

public function generateUrl(Url $url) {
  return $url
    ->toString();
}