Documentation

MediaInterface

Class implements media interface.

Table of Contents

Methods

getMedia()  : MediaCollectionInterface
Gets the associated media collection.
getMediaFolder()  : string|null
Get filesystem path to the associated media.
getMediaOrder()  : array<string|int, mixed>
Get display order for the associated media.

Methods

getMediaFolder()

Get filesystem path to the associated media.

public getMediaFolder() : string|null
Return values
string|null

Media path or null if the object doesn't have media folder.

getMediaOrder()

Get display order for the associated media.

public getMediaOrder() : array<string|int, mixed>
Return values
array<string|int, mixed>

Empty array means default ordering.


        
On this page

Search results