public function SiteVerifyService::siteVerifyLoad in Site verification 8
Menu load callback; loads a site verification record.
This also loads the engine details if the record was found.
Parameters
int $svid: A site verification ID.
Return value
array An array of the site verification record, or FALSE if not found.
File
- src/
Service/ SiteVerifyService.php, line 25
Class
- SiteVerifyService
- Class SiteVerifyService.
Namespace
Drupal\site_verify\ServiceCode
public function siteVerifyLoad($svid) {
$record = \Drupal::database()
->select('site_verify', 'site_verify')
->fields('site_verify')
->condition('svid', $svid)
->execute()
->fetchAssoc();
if ($record) {
$record['engine'] = $this
->siteVerifyEngineLoad($record['engine']);
}
return $record;
}