Issue #2600078 by YesCT, koppie, kgoel: Correct syntax for data type documentation in TranslationManager.php
parent
04df0c659d
commit
72ae69d3c7
|
@ -16,20 +16,24 @@ use Drupal\Core\StringTranslation\Translator\TranslatorInterface;
|
||||||
class TranslationManager implements TranslationInterface, TranslatorInterface {
|
class TranslationManager implements TranslationInterface, TranslatorInterface {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An array of active translators keyed by priority.
|
* An unsorted array of arrays of active translators.
|
||||||
*
|
*
|
||||||
* @var array
|
* An associative array. The keys are integers that indicate priority. Values
|
||||||
* Array of \Drupal\Core\StringTranslation\Translator\TranslatorInterface objects
|
* are arrays of TranslatorInterface objects.
|
||||||
|
*
|
||||||
|
* @var \Drupal\Core\StringTranslation\Translator\TranslatorInterface[][]
|
||||||
|
*
|
||||||
|
* @see \Drupal\Core\StringTranslation\TranslationManager::addTranslator()
|
||||||
|
* @see \Drupal\Core\StringTranslation\TranslationManager::sortTranslators()
|
||||||
*/
|
*/
|
||||||
protected $translators = array();
|
protected $translators = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the array of translators sorted by priority.
|
* An array of translators, sorted by priority.
|
||||||
*
|
*
|
||||||
* If this is NULL a rebuild will be triggered.
|
* If this is NULL a rebuild will be triggered.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var null|\Drupal\Core\StringTranslation\Translator\TranslatorInterface[]
|
||||||
* An array of path processor objects.
|
|
||||||
*
|
*
|
||||||
* @see \Drupal\Core\StringTranslation\TranslationManager::addTranslator()
|
* @see \Drupal\Core\StringTranslation\TranslationManager::addTranslator()
|
||||||
* @see \Drupal\Core\StringTranslation\TranslationManager::sortTranslators()
|
* @see \Drupal\Core\StringTranslation\TranslationManager::sortTranslators()
|
||||||
|
@ -62,8 +66,7 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
|
||||||
* @param int $priority
|
* @param int $priority
|
||||||
* The priority of the logger being added.
|
* The priority of the logger being added.
|
||||||
*
|
*
|
||||||
* @return \Drupal\Core\StringTranslation\TranslationManager
|
* @return $this
|
||||||
* The called object.
|
|
||||||
*/
|
*/
|
||||||
public function addTranslator(TranslatorInterface $translator, $priority = 0) {
|
public function addTranslator(TranslatorInterface $translator, $priority = 0) {
|
||||||
$this->translators[$priority][] = $translator;
|
$this->translators[$priority][] = $translator;
|
||||||
|
@ -75,8 +78,8 @@ class TranslationManager implements TranslationInterface, TranslatorInterface {
|
||||||
/**
|
/**
|
||||||
* Sorts translators according to priority.
|
* Sorts translators according to priority.
|
||||||
*
|
*
|
||||||
* @return array
|
* @return \Drupal\Core\StringTranslation\Translator\TranslatorInterface[]
|
||||||
* A sorted array of translators objects.
|
* A sorted array of translator objects.
|
||||||
*/
|
*/
|
||||||
protected function sortTranslators() {
|
protected function sortTranslators() {
|
||||||
$sorted = array();
|
$sorted = array();
|
||||||
|
|
Loading…
Reference in New Issue