You are here

public function WebformElementBase::getPluginApiLink in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getPluginApiLink()

Get link to element's API documentation.

Return value

\Drupal\Core\GeneratedLink|string A link to element's API documentation.

Overrides WebformElementInterface::getPluginApiLink

File

src/Plugin/WebformElementBase.php, line 503

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function getPluginApiLink() {
  $api_url = $this
    ->getPluginApiUrl();
  return $api_url ? Link::fromTextAndUrl($this
    ->getPluginLabel(), $api_url) : NULL;
}