Commit 2583f464 authored by Alex Nostadt's avatar Alex Nostadt 🇩🇪

Hide packagist button if no composer is defined

parent ea0334cc
Pipeline #8833 passed with stages
in 7 minutes and 36 seconds
......@@ -583,8 +583,14 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
$this->composerName = $composerName;
}
/**
* @return string
*/
public function getPackagistPage()
{
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