You are here

public function YamlFormElementBase::getPluginApiUrl in YAML Form 8

Get the URL for the element's API documentation.

Return value

\Drupal\Core\Url|null The the URL for the element's API documentation.

Overrides YamlFormElementInterface::getPluginApiUrl

2 calls to YamlFormElementBase::getPluginApiUrl()
YamlFormElementBase::buildConfigurationForm in src/YamlFormElementBase.php
Form constructor.
YamlFormElementBase::getPluginApiLink in src/YamlFormElementBase.php
Get link to element's API documentation.

File

src/YamlFormElementBase.php, line 223

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function getPluginApiUrl() {
  return !empty($this->pluginDefinition['api']) ? Url::fromUri($this->pluginDefinition['api']) : NULL;
}