You are here

public function LingotekTargetStatus::getInfo in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 8.2 src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  2. 4.0.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  3. 3.0.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  4. 3.1.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  5. 3.2.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  6. 3.4.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  7. 3.5.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  8. 3.6.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  9. 3.7.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()
  10. 3.8.x src/Element/LingotekTargetStatus.php \Drupal\lingotek\Element\LingotekTargetStatus::getInfo()

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

src/Element/LingotekTargetStatus.php, line 21

Class

LingotekTargetStatus
Provides a Lingotek target status element.

Namespace

Drupal\lingotek\Element

Code

public function getInfo() {
  return [
    '#pre_render' => [
      [
        $this,
        'preRender',
      ],
    ],
    '#theme' => 'lingotek_target_status',
    '#attached' => [
      'library' => [
        'lingotek/lingotek',
      ],
    ],
    '#cache' => [
      'max-age' => 0,
    ],
  ];
}