Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getAndSortConfigData example
throw
new
\
InvalidArgumentException
(
"Sorting the
$op
changelist should not change its length."
)
;
}
}
}
/** * {@inheritdoc} */
public
function
createChangelist
(
)
{
foreach
(
$this
->
getAllCollectionNames
(
)
as
$collection
)
{
$this
->changelist
[
$collection
]
=
$this
->
getEmptyChangelist
(
)
;
$this
->
getAndSortConfigData
(
$collection
)
;
$this
->
addChangelistCreate
(
$collection
)
;
$this
->
addChangelistUpdate
(
$collection
)
;
$this
->
addChangelistDelete
(
$collection
)
;
// Only collections that support configuration entities can have renames.
if
(
$collection
== StorageInterface::DEFAULT_COLLECTION
)
{
$this
->
addChangelistRename
(
$collection
)
;
}
}
return
$this
;
}