PHP Class Essence\Provider\Presenter\Youtube

Inheritance: extends Essence\Provider\Presenter
Show file Open project: benjamminf/craft-embedded-assets Class Usage Examples

Protected Properties

Property Type Description
$_format string Thumbnail format.
$_names array Replacements for the thumbnail file name.
$_property string Property in which the thumbnail URL is stored.

Public Methods

Method Description
__construct ( string $format, string $property = 'thumbnailUrl' ) Constructor.
present ( Media $Media ) {@inheritDoc}

Method Details

__construct() public method

Constructor.
public __construct ( string $format, string $property = 'thumbnailUrl' )
$format string Thumbnail format.
$property string Thumbnail property.

present() public method

{@inheritDoc}
public present ( Media $Media )
$Media Essence\Media

Property Details

$_format protected property

Thumbnail format.
protected string $_format
return string

$_names protected property

Replacements for the thumbnail file name.
protected array $_names
return array

$_property protected property

Property in which the thumbnail URL is stored.
protected string $_property
return string