dbStringLoad example


  public function __construct(Connection $connection, array $options = []) {
    $this->connection = $connection;
    $this->options = $options;
  }

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

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

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