Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
iteratePlugins example
$query
=
$this
->
getQuery
(
)
->
andWhere
(
"plugin.name != 'PluginManager'"
)
->
andWhere
(
'plugin.capability_enable = 1'
)
;
$this
->
addSortings
(
$context
,
$query
)
;
$data
=
$query
->
setFirstResult
(
$context
->
getOffset
(
)
)
->
setMaxResults
(
$context
->
getLimit
(
)
)
->
execute
(
)
->
fetchAll
(
PDO::FETCH_ASSOC
)
;
$plugins
=
$this
->
iteratePlugins
(
$data
,
$context
)
;
return
new
ListingResultStruct
(
$plugins
, \
count
(
$plugins
)
)
;
}
/** * @return PluginStruct|null */
public
function
getPlugin
(
PluginsByTechnicalNameRequest
$context
)
{
$plugins
=
$this
->
getPlugins
(
$context
)
;