public function ProcessorFormBase::exists in Production check & Production monitor 8
Determines if the prod check processor already exists.
Parameters
string $id: The processor ID
Return value
bool TRUE if the processor exists, FALSE otherwise.
File
- src/
Form/ ProcessorFormBase.php, line 100
Class
- ProcessorFormBase
- Provides a base form for processor forms.
Namespace
Drupal\prod_check\FormCode
public function exists($id) {
$processor = $this->storage
->load($id);
return !empty($processor);
}