update_collection

Collection-related functions

Summary

update_collection(Collection|int $collection, array $metadata = Array, array $elementTexts = Array)

Update an existing collection.

Parameters:
  • $collection (Collection|int) – Either an Collection object or the ID for the collection.
  • $metadata (array) – Set of options that can be passed to the collection.
  • $elementTexts (array) – The element texts for the collection
Returns:

Collection

Usage

Examples

See Also