$pluginIconPath =
$extra['plugin-icon'
] ?? 'src/Resources/config/plugin.png';
$pluginData =
[ 'name' =>
$pluginFromFileSystem->
getName(),
'baseClass' =>
$baseClass,
'composerName' =>
$info->
getName(),
'path'
=> (new Filesystem())->
makePathRelative($pluginPath,
$this->projectDir
),
'author' =>
$this->
getAuthors($info),
'copyright' =>
$extra['copyright'
] ?? null,
'license' =>
implode(', ',
$license),
'version' =>
$pluginVersion,
'iconRaw' =>
$this->
getPluginIconRaw($pluginPath . '/' .
$pluginIconPath),
'autoload' =>
$info->
getAutoload(),
'managedByComposer' =>
$pluginFromFileSystem->
getManagedByComposer(),
];
$pluginData['translations'
] =
$this->
getTranslations($shopwareContext,
$extra);
/** @var PluginEntity $currentPluginEntity */
$currentPluginEntity =
$installedPlugins->
filterByProperty('baseClass',
$baseClass)->
first();
if ($currentPluginEntity !== null
) { $currentPluginId =
$currentPluginEntity->
getId();
$pluginData['id'
] =
$currentPluginId;