Contact.php in Social Media Links Block and Field 8.2
File
src/Plugin/SocialMediaLinks/Platform/Contact.php
View source
<?php
namespace Drupal\social_media_links\Plugin\SocialMediaLinks\Platform;
use Drupal\social_media_links\PlatformBase;
use Drupal\Core\Url;
class Contact extends PlatformBase {
public function getUrlPrefix() {
$url = Url::fromUserInput('/', [
'absolute' => TRUE,
]);
return $url
->toString();
}
public function getUrl() {
return Url::fromUserInput('/' . $this
->getValue() . $this
->getUrlSuffix());
}
}