Commit 03fa7a13 authored by Thomas Löffler's avatar Thomas Löffler

Merge branch '450-do-not-render-packagist-button-if-composer-not-available' into 'develop'

Hide packagist button if no composer is defined

Closes #450

See merge request !484
parents ea0334cc ffb56c08
Pipeline #8835 passed with stages
in 8 minutes and 5 seconds
......@@ -583,8 +583,14 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
$this->composerName = $composerName;
}
public function getPackagistPage()
/**
* @return string
*/
public function getPackagistPage(): string
{
if (empty($this->composerName)) {
return '';
}
return 'https://packagist.org/packages/' . $this->composerName;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment