public function oEmbedThumbnail::getInfo in oEmbed 8
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides oEmbed::getInfo
File
- src/
Element/ oEmbedThumbnail.php, line 13
Class
- oEmbedThumbnail
- Class oEmbedThumbnail @package Drupal\oembed\Render\Element
Namespace
Drupal\oembed\ElementCode
public function getInfo() {
$class = get_class($this);
return array(
'#theme' => 'image',
'#path' => NULL,
'#width' => NULL,
'#height' => NULL,
'#alt' => '',
'#title' => NULL,
'#attributes' => array(),
'#embed' => NULL,
'#parameters' => array(),
'#pre_render' => array(
array(
$class,
'preRenderFetch',
),
array(
$class,
'preRenderThumbnail',
),
),
);
}