dbStringSelect example

/** * {@inheritdoc} */
  public function getTranslations(array $conditions = [], array $options = []) {
    return $this->dbStringLoad($conditions['translation' => TRUE] + $options, 'Drupal\locale\TranslationString');
  }

  /** * {@inheritdoc} */
  public function findString(array $conditions) {
    $values = $this->dbStringSelect($conditions)
      ->execute()
      ->fetchAssoc();

    if (!empty($values)) {
      $string = new SourceString($values);
      $string->setStorage($this);
      return $string;
    }
  }

  /** * {@inheritdoc} */
Home | Imprint | This part of the site doesn't use cookies.