Property | Type | Description | |
---|---|---|---|
$contents | The contents of the media object | ||
$list | Whether the list |
Method | Description | |
---|---|---|
asList ( ) | Force the media object to become a list | |
render ( ) : string | Renders the media object | |
withContents ( array $contents ) | Sets the contents of the media object |
Method | Description | |
---|---|---|
getBody ( array $contents ) : string | Get the body of the contents array | |
getHeading ( array $contents ) : string | Get the heading of the media object | |
getImage ( array $contents, string $alt ) : string | Get the image of the media object | |
getLink ( array $contents, string $image, string $position ) : string | Turn the image into a link/div | |
getPosition ( array $contents ) : string | Get the position | |
renderItem ( array $contents, string $tag ) : string | Renders an item in the string | |
renderList ( ) : string | Renders a list |
protected getHeading ( array $contents ) : string | ||
$contents | array | |
return | string |
protected getPosition ( array $contents ) : string | ||
$contents | array | |
return | string | pull-right if the position key equals right. pull-left otherwise |
public withContents ( array $contents ) | ||
$contents | array | The contents of the media object |