You are here

function shorten_cs_load in Shorten URLs 8.2

Same name and namespace in other branches
  1. 8 modules/shorten_cs/shorten_cs.module \shorten_cs_load()
  2. 6 shorten_cs.module \shorten_cs_load()
  3. 7.2 shorten_cs.module \shorten_cs_load()
  4. 7 shorten_cs.module \shorten_cs_load()

Loads a custom service object.

File

modules/shorten_cs/shorten_cs.module, line 91
Allows users to specify custom services for the Shorten URLs module.

Code

function shorten_cs_load($sid) {
  return \Drupal::database()
    ->query("SELECT * FROM {shorten_cs} WHERE sid = :sid", [
    ':sid' => $sid,
  ])
    ->fetchObject();
}