public function BrightcovePlaylist::isFavorite in Brightcove Video Connect 3.x
Same name and namespace in other branches
- 8.2 src/Entity/BrightcovePlaylist.php \Drupal\brightcove\Entity\BrightcovePlaylist::isFavorite()
- 8 src/Entity/BrightcovePlaylist.php \Drupal\brightcove\Entity\BrightcovePlaylist::isFavorite()
Returns the Brightcove Playlist favorite indicator.
Favorite Brightcove Playlists are displayed in the sidebar.
Return value
bool TRUE if the Brightcove Playlist is favorite.
Overrides BrightcovePlaylistInterface::isFavorite
File
- src/
Entity/ BrightcovePlaylist.php, line 179
Class
- BrightcovePlaylist
- Defines the Brightcove Playlist.
Namespace
Drupal\brightcove\EntityCode
public function isFavorite() {
return (bool) $this
->get('favorite')->value;
}