You are here

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

Return the url prefix of the platform.

Return value

string The url prefix.

Overrides PlatformInterface::getUrlPrefix

1 call to PlatformBase::getUrlPrefix()
PlatformBase::getUrl in src/PlatformBase.php
Get the full url for the platform.
1 method overrides PlatformBase::getUrlPrefix()
Contact::getUrlPrefix in src/Plugin/SocialMediaLinks/Platform/Contact.php
Return the url prefix of the platform.

File

src/PlatformBase.php, line 64

Class

PlatformBase
Base class for platform.

Namespace

Drupal\social_media_links

Code

public function getUrlPrefix() {
  return isset($this->pluginDefinition['urlPrefix']) ? $this->pluginDefinition['urlPrefix'] : '';
}