PHP Class Essence\Provider\Presenter\Youtube

Inheritance: extends Essence\Provider\Presenter
Mostra 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_oe property

Thumbnail format.
protected string $_format
return string

$_names protected_oe property

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

$_property protected_oe property

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