You are here

public function LocalTaskItemInterface::getData in Translation Management Tool 8

Gets translation data.

The structure is similar to the form API in the way that it is a possibly nested array with the following properties whose presence indicate that the current element is a text that might need to be translated.

  • #text: The translated text of the corresponding entry in the job item.
  • #status: The status of the translation.

The key can be an alphanumeric string.

Parameters

array $key: If present, only the subarray identified by key is returned.

string $index: Optional index of an attribute below $key.

Return value

array A structured data array.

1 method overrides LocalTaskItemInterface::getData()
LocalTaskItem::getData in translators/tmgmt_local/src/Entity/LocalTaskItem.php
Gets translation data.

File

translators/tmgmt_local/src/LocalTaskItemInterface.php, line 132

Class

LocalTaskItemInterface
Interface for tmgmt_local_task_item entity.

Namespace

Drupal\tmgmt_local

Code

public function getData($key = array(), $index = NULL);