LingotekProfileInterface.php in Lingotek Translation 3.7.x
Same filename and directory in other branches
- 8 src/LingotekProfileInterface.php
- 8.2 src/LingotekProfileInterface.php
- 4.0.x src/LingotekProfileInterface.php
- 3.0.x src/LingotekProfileInterface.php
- 3.1.x src/LingotekProfileInterface.php
- 3.2.x src/LingotekProfileInterface.php
- 3.3.x src/LingotekProfileInterface.php
- 3.4.x src/LingotekProfileInterface.php
- 3.5.x src/LingotekProfileInterface.php
- 3.6.x src/LingotekProfileInterface.php
- 3.8.x src/LingotekProfileInterface.php
Namespace
Drupal\lingotekFile
src/LingotekProfileInterface.phpView source
<?php
namespace Drupal\lingotek;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides an interface defining a Lingotek profile entity.
*/
interface LingotekProfileInterface extends ConfigEntityInterface, LingotekFilterProviderInterface {
/**
* The profile is not being used.
*/
const USED_NEVER = 0;
/**
* The profile is being used in content.
*/
const USED_IN_CONTENT = 1;
/**
* The profile is being used in config.
*/
const USED_IN_CONFIG = 2;
/**
* The profile is being used in config.
*/
const USED_BY_SETTINGS = 3;
/**
* Returns whether this profile is locked.
*
* @return bool
* Whether the profile is locked or not.
*/
public function isLocked();
/**
* Returns value of append content type to title option.
*
* @return string
* Values will be 'global_setting', 'yes', or 'no'
*/
public function getAppendContentTypeToTitle();
/**
* Sets the value of append content type to title option.
*
* @param string $append_type_to_title
* Values can be 'global_setting', 'yes', or 'no'
*
* @return $this
*/
public function setAppendContentTypeToTitle($append_type_to_title = 'global_setting');
/**
* Gets the weight of the profile.
*
* @return int
* The weight, used to order profiles with larger positive weights sinking
* items toward the bottom of lists.
*/
public function getWeight();
/**
* Sets the weight of the profile.
*
* @param int $weight
* The weight, used to order profiles with larger positive weights sinking
* items toward the bottom of lists.
*
* @return $this
*/
public function setWeight($weight);
/**
* Returns whether this profile indicates automatic upload of sources.
*
* @return bool
* Whether the profile indicates automatic upload or not.
*/
public function hasAutomaticUpload();
/**
* Sets whether this profile indicates automatic upload of sources.
*
* @param bool $auto_upload
* Whether the profile indicates automatic uploads or not.
*
* @return $this
*/
public function setAutomaticUpload($auto_upload);
/**
* Returns whether this profile indicates automatic request of translations.
*
* @return bool
* Whether the profile indicates automatic request or not.
*/
public function hasAutomaticRequest();
/**
* Sets whether this profile indicates automatic request of translations.
*
* @param bool $auto_request
* Whether the profile indicates automatic request or not.
*
* @return $this
*/
public function setAutomaticRequest($auto_request);
/**
* Returns whether this profile indicates automatic download of translations.
*
* @return bool
* Whether the profile indicates automatic download or not.
*/
public function hasAutomaticDownload();
/**
* Sets whether this profile indicates automatic download of translations.
*
* @param bool $auto_download
* Whether the profile indicates automatic download or not.
*
* @return $this
*/
public function setAutomaticDownload($auto_download);
/**
* Returns whether this profile indicates automatically adding downloads to a worker queue.
*
* @return bool
* Whether the profile indicates automatic adding downloads to a worker queue.
*/
public function hasAutomaticDownloadWorker();
/**
* Sets whether this profile indicates automatically adding downloads to a worker queue.
*
* @param bool $auto_download_worker
* Whether the profile indicates automatic adding downloads to a worker queue.
*
* @return $this
*/
public function setAutomaticDownloadWorker($auto_download_worker);
/**
* Gets the TM vault of the profile.
*
* @return string
* The TM vault identifier, used to upload documents. If 'default', the
* default site vault should be used.
*/
public function getVault();
/**
* Sets the TM vault of the profile.
*
* @param string $vault
* The TM vault identifier, used to upload documents. If 'default', the
* default site vault should be used.
*
* @return $this
*/
public function setVault($vault);
/**
* Gets the TM project of the profile.
*
* @return string
* The TM project identifier, used to upload documents. If 'default', the
* default site project should be used.
*/
public function getProject();
/**
* Sets the TM vault of the profile.
*
* @param string $project
* The TM project identifier, used to upload documents. If 'default', the
* default site project should be used.
*
* @return $this
*/
public function setProject($project);
/**
* Gets the workflow of the profile.
*
* @return string
* The workflow identifier, used to request translations. If 'default', the
* default site workflow should be used.
*/
public function getWorkflow();
/**
* Sets the workflow of the profile.
*
* @param string $workflow
* The workflow identifier, used to request translations. If 'default', the
* default site project should be used.
*
* @return $this
*/
public function setWorkflow($workflow);
/**
* Returns whether this profile indicates automatic request of translations for
* an specific target language.
*
* @param string $langcode
* The language code.
*
* @return bool
* Whether the profile indicates automatic request or not.
*/
public function hasAutomaticRequestForTarget($langcode);
/**
* Sets whether this profile indicates automatic request of translations for
* an specific target language.
*
* @param string $langcode
* The language code.
* @param bool $value
* TRUE if translation should be automatically requested, FALSE if not.
*
* @return $this
*/
public function setAutomaticRequestForTarget($langcode, $value);
/**
* Returns whether this profile indicates automatic download of translations for
* an specific target language.
*
* @param string $langcode
* The language code.
*
* @return bool
* Whether the profile indicates automatic download or not.
*/
public function hasAutomaticDownloadForTarget($langcode);
/**
* Sets whether this profile indicates automatic download of translations for
* an specific target language.
*
* @param string $langcode
* The language code.
* @param bool $value
* TRUE if translation should be automatically downloaded, FALSE if not.
*
* @return $this
*/
public function setAutomaticDownloadForTarget($langcode, $value);
/**
* Gets the workflow to be used for a given language.
*
* @param string $langcode
* The language code.
*
* @return string
* The workflow identifier, used to request translations. If 'default', the
* default site workflow should be used.
*/
public function getWorkflowForTarget($langcode);
/**
* Sets the workflow to be used for a given language.
*
* @param string $langcode
* The language code.
* @param string $value
* The workflow identifier, used to request translation. If 'default', the
* default site workflow should be used.
*
* @return $this
*/
public function setWorkflowForTarget($langcode, $value);
/**
* Checks if the profile has custom settings for a given target language.
*
* @param string $langcode
* The language code.
*
* @return bool
* TRUE if there are customizations, FALSE if not.
*/
public function hasCustomSettingsForTarget($langcode);
/**
* Checks if the profile has disabled the given target language.
*
* @param string $langcode
* The language code.
*
* @return bool
* TRUE if it is disabled, FALSE if not.
*/
public function hasDisabledTarget($langcode);
/**
* Checks if the profile overrides settings for Intelligence metadata.
*
* @return bool
* TRUE if there are Lingotek Intelligence customizations, FALSE if not.
*/
public function hasIntelligenceMetadataOverrides();
/**
* Set if the profile overrides settings for Intelligence metadata.
*
* @param bool $value
* TRUE if there are Lingotek Intelligence customizations, FALSE if not.
*
* @return $this
*/
public function setIntelligenceMetadataOverrides($value);
/**
* Gets the vault to be used for a given language.
*
* @param string $langcode
* The language code.
*
* @return string
* The vault identifier, used to request translations. If 'default, the
* default site vault should be used.
*/
public function getVaultForTarget($langcode);
/**
* Set the vault to be used for a given language.
*
* @param string $langcode
* The language code.
*
* @param string $value
* The vault identifier, used to request translations. If'default', the
* default site vault should be used.
*
* @return $this
*/
public function setVaultForTarget($langcode, $value);
}
Interfaces
Name | Description |
---|---|
LingotekProfileInterface | Provides an interface defining a Lingotek profile entity. |