function brightcove_brightcove_playlist_view in Brightcove Video Connect 8.2
Same name and namespace in other branches
- 8 brightcove.module \brightcove_brightcove_playlist_view()
- 3.x brightcove.module \brightcove_brightcove_playlist_view()
Implements hook_ENTITY_TYPE_view().
File
- ./
brightcove.module, line 225 - Brightcove module.
Code
function brightcove_brightcove_playlist_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
/** @var \Drupal\brightcove\Entity\BrightcovePlaylist $entity */
if ($display
->getComponent('brightcove_player')) {
$build['brightcove_player'] = _brightcove_get_player_field($entity);
}
}