function MediaEmbed::renderMissingMediaIndicator
Same name in other branches
- 8.9.x core/modules/media/src/Plugin/Filter/MediaEmbed.php \Drupal\media\Plugin\Filter\MediaEmbed::renderMissingMediaIndicator()
- 10 core/modules/media/src/Plugin/Filter/MediaEmbed.php \Drupal\media\Plugin\Filter\MediaEmbed::renderMissingMediaIndicator()
- 11.x core/modules/media/src/Plugin/Filter/MediaEmbed.php \Drupal\media\Plugin\Filter\MediaEmbed::renderMissingMediaIndicator()
Builds the render array for the indicator when media cannot be loaded.
Return value
array A render array.
1 call to MediaEmbed::renderMissingMediaIndicator()
- MediaEmbed::process in core/
modules/ media/ src/ Plugin/ Filter/ MediaEmbed.php - Performs the filter processing.
File
-
core/
modules/ media/ src/ Plugin/ Filter/ MediaEmbed.php, line 267
Class
- MediaEmbed
- Provides a filter to embed media items using a custom tag.
Namespace
Drupal\media\Plugin\FilterCode
protected function renderMissingMediaIndicator() {
return [
'#theme' => 'media_embed_error',
'#message' => $this->t('The referenced media source is missing and needs to be re-embedded.'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.