You are here

public function JwplayerPresetAdd::exists in JW Player 8

File

src/Form/JwplayerPresetAdd.php, line 554

Class

JwplayerPresetAdd
Configure search settings for this site.

Namespace

Drupal\jw_player\Form

Code

public function exists($machine_name) {
  return (bool) $this->entityTypeManager
    ->getStorage('jw_player')
    ->getQuery()
    ->condition('id', $machine_name)
    ->execute();
}