Skip to content

Instantly share code, notes, and snippets.

@arfaram
Last active January 12, 2019 14:28
Show Gist options
  • Save arfaram/e0d581104cfe5264659078a7cefda2ef to your computer and use it in GitHub Desktop.
Save arfaram/e0d581104cfe5264659078a7cefda2ef to your computer and use it in GitHub Desktop.
Information about deleted content from the trash from several signals (delete single item or empty trash) in ezPlatform 2.4+
EmptyTrashSignal:
eZ\Publish\Core\SignalSlot\Signal\TrashService\EmptyTrashSignal Object (
[trashItemDeleteResultList]
=> eZ\Publish\API\Repository\Values\Content\Trash\TrashItemDeleteResultList Object
(
[items] => Array
(
[0] => eZ\Publish\API\Repository\Values\Content\Trash\TrashItemDeleteResult
Object(
[trashItemId] => 322
[contentId] => 335
[contentRemoved] => 1
)
[1] => eZ\Publish\API\Repository\Values\Content\Trash\TrashItemDeleteResult
Object(
[trashItemId] => 323
[contentId] => 336
[contentRemoved] => 1
)
)
)
)
DeleteTrashItemSignal (single item):
eZ\Publish\Core\SignalSlot\Signal\TrashService\DeleteTrashItemSignal Object (
[trashItemId] => 316
[trashItemDeleteResult] => eZ\Publish\API\Repository\Values\Content\Trash\TrashItemDeleteResult
Object(
[trashItemId] => 316
[contentId] => 329
[contentRemoved] => 1
)
)
More infos: https://github.com/ezsystems/ezpublish-kernel/pull/2520
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment