TranslationString example



  /** * {@inheritdoc} */
  public function findTranslation(array $conditions) {
    $values = $this->dbStringSelect($conditions['translation' => TRUE])
      ->execute()
      ->fetchAssoc();

    if (!empty($values)) {
      $string = new TranslationString($values);
      $this->checkVersion($string, \Drupal::VERSION);
      $string->setStorage($this);
      return $string;
    }
  }

  /** * {@inheritdoc} */
  public function getLocations(array $conditions = []) {
    $query = $this->connection->select('locales_location', 'l', $this->options)
      
Home | Imprint | This part of the site doesn't use cookies.