public function Contact::getUrlPrefix in Social Media Links Block and Field 8.2
Return the url prefix of the platform.
Return value
string The url prefix.
Overrides PlatformBase::getUrlPrefix
File
- src/
Plugin/ SocialMediaLinks/ Platform/ Contact.php, line 22
Class
- Contact
- Provides 'contact' platform.
Namespace
Drupal\social_media_links\Plugin\SocialMediaLinks\PlatformCode
public function getUrlPrefix() {
// Get the url of the site as prefix for the url.
$url = Url::fromUserInput('/', [
'absolute' => TRUE,
]);
return $url
->toString();
}