CoolCMS API

AssetRelInterface

Link between an entity and an image or file (`*AssetRel`, `*ImageRel`) with order and flags.

The TAssetRel template bound in AssetRelCollectionTrait is BaseEntity&AssetRelInterface (alias AssetRelEntity in phpstan.neon), so getAssets() and getMainAsset() sort and filter on a verified type.

Table of Contents

Methods

getAsset()  : Asset|null
getOrder()  : int
isMain()  : bool
isRemoved()  : bool

Methods

On this page

Search results