You are here

public function WebformElementBase::getPluginApiUrl in Webform 6.x

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

Get the URL for the element's API documentation.

Return value

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

Overrides WebformElementInterface::getPluginApiUrl

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

File

src/Plugin/WebformElementBase.php, line 424

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

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