You are here

public function RoyalSliderOptionSetForm::exist in RoyalSlider Integration 8

File

src/Form/RoyalSliderOptionSetForm.php, line 126
Contains \Drupal\royalslider\Form\RoyalSliderOptionSetForm.

Class

RoyalSliderOptionSetForm
Class RoyalSliderOptionSetForm

Namespace

Drupal\royalslider\Form

Code

public function exist($id) {
  $entity = $this->entityQuery
    ->get('royalslider_optionset')
    ->condition('id', $id)
    ->execute();
  return (bool) $entity;
}