You are here

LingotekApiInterface.php in Lingotek Translation 8

File

src/Remote/LingotekApiInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\lingotek\Remote\LingotekApiInterface.
 */
namespace Drupal\lingotek\Remote;

use Symfony\Component\DependencyInjection\ContainerInterface;
interface LingotekApiInterface {
  public static function create(ContainerInterface $container);
  public function getAccountInfo();

  /**
   * Get the available locales on Lingotek.
   *
   * @return array|bool
   *   Array of locales (as in de-DE, es-ES). FALSE if there is an error.
   */
  public function getLocales();
  public function addDocument($args);
  public function patchDocument($id, $args);
  public function deleteDocument($id);
  public function getDocument($id);
  public function documentExists($id);
  public function getDocumentTranslationStatuses($id);
  public function getDocumentTranslationStatus($id, $locale);
  public function getDocumentInfo($id);
  public function getDocumentStatus($id);
  public function addTranslation($id, $locale, $workflow_id = NULL);
  public function getTranslation($id, $locale);
  public function deleteTranslation($id, $locale);
  public function getCommunities();
  public function getProjects($community_id);
  public function getVaults($community_id);
  public function getWorkflows($community_id);

}

Interfaces