You are here

public function BrightcovePlaylist::isFavorite in Brightcove Video Connect 8.2

Same name and namespace in other branches
  1. 8 src/Entity/BrightcovePlaylist.php \Drupal\brightcove\Entity\BrightcovePlaylist::isFavorite()
  2. 3.x 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\Entity

Code

public function isFavorite() {
  return (bool) $this
    ->get('favorite')->value;
}