Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
sBuildTagCloud example
public
function
tagCloudAction
(
)
{
$config
=
$this
->container->
get
(
'plugins'
)
->
Frontend
(
)
->
TagCloud
(
)
->
Config
(
)
;
if
(
empty
(
$config
->
get
(
'show'
)
)
)
{
return
;
}
$controller
=
$this
->
Request
(
)
->
getParam
(
'sController',
$this
->
Request
(
)
->
getControllerName
(
)
)
;
if
(
str_contains
(
$config
->
get
(
'controller'
)
,
$controller
)
)
{
$this
->
View
(
)
->
assign
(
'sCloud',
$this
->container->
get
(
'modules'
)
->
Marketing
(
)
->
sBuildTagCloud
(
$this
->
Request
(
)
->
getParam
(
'sCategory'
)
)
)
;
}
}
/** * Loads the listing count for the provided listing parameters. * Sets a json response with: `facets`, `totalCount` and `products`. * * @return void */