public function PeclExtension::getUrl in Markdown 8.2
Retrieves the definition's URL property as an object.
Parameters
array $options: An array of options to pass to the Url object constructor.
Return value
\Drupal\Core\Url|void A Url object or NULL if no URL is set.
Overrides InstallablePluginTrait::getUrl
File
- src/
Annotation/ PeclExtension.php, line 137
Class
- PeclExtension
- PeclExtension Annotation.
Namespace
Drupal\markdown\AnnotationCode
public function getUrl(array $options = []) {
if (!$this->url && ($name = $this
->getName())) {
$this->url = sprintf('https://pecl.php.net/package/%s', $name);
}
return parent::getUrl($options);
}