getId()
getId() : string
Returns the id of the news entry
Returns
string —The id of the news entry
This class represents a news item from the co*pilot news feed.
getMainImageLink(\Copilot\Client\unknown $width) : string
Returns a link to the main image of the news entry for the given image width
\Copilot\Client\unknown | $width | The width in pixels |
The link form where to fetch the image. Might be empty when no image is available
getMainImage() : \Copilot\Client\Asset
Returns the asset that corresponds to the main image
The asset or null if no image is set.