function MediaEmbed::tips
Same name in other branches
- 9 core/modules/media/src/Plugin/Filter/MediaEmbed.php \Drupal\media\Plugin\Filter\MediaEmbed::tips()
- 10 core/modules/media/src/Plugin/Filter/MediaEmbed.php \Drupal\media\Plugin\Filter\MediaEmbed::tips()
- 11.x core/modules/media/src/Plugin/Filter/MediaEmbed.php \Drupal\media\Plugin\Filter\MediaEmbed::tips()
Overrides FilterBase::tips
File
-
core/
modules/ media/ src/ Plugin/ Filter/ MediaEmbed.php, line 352
Class
- MediaEmbed
- Provides a filter to embed media items using a custom tag.
Namespace
Drupal\media\Plugin\FilterCode
public function tips($long = FALSE) {
if ($long) {
return $this->t('
<p>You can embed media items:</p>
<ul>
<li>Choose which media item to embed: <code><drupal-media data-entity-uuid="07bf3a2e-1941-4a44-9b02-2d1d7a41ec0e" /></code></li>
<li>Optionally also choose a view mode: <code>data-view-mode="tiny_embed"</code>, otherwise the default view mode is used.</li>
<li>The <code>data-entity-type="media"</code> attribute is required for consistency.</li>
</ul>');
}
else {
return $this->t('You can embed media items (using the <code><drupal-media></code> tag).');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.