You are here

public function YamlFormElementBase::getPluginApiLink in YAML Form 8

Get link to element's API documentation.

Return value

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

Overrides YamlFormElementInterface::getPluginApiLink

File

src/YamlFormElementBase.php, line 230

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

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