You are here

public function CheckFormBase::exists in Production check & Production monitor 8

Determines if the prod check already exists.

Parameters

string $id: The check ID

Return value

bool TRUE if the check exists, FALSE otherwise.

File

src/Form/CheckFormBase.php, line 100

Class

CheckFormBase
Provides a base form for prod check forms.

Namespace

Drupal\prod_check\Form

Code

public function exists($id) {
  $check = $this->storage
    ->load($id);
  return !empty($check);
}