You are here

public function LingotekJobId::getInfo in Lingotek Translation 3.7.x

Same name and namespace in other branches
  1. 8.2 src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  2. 4.0.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  3. 3.0.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  4. 3.1.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  5. 3.2.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  6. 3.3.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  7. 3.4.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  8. 3.5.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  9. 3.6.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::getInfo()
  10. 3.8.x src/Element/LingotekJobId.php \Drupal\lingotek\Element\LingotekJobId::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 Textfield::getInfo

File

src/Element/LingotekJobId.php, line 52

Class

LingotekJobId
Provides a job id render element.

Namespace

Drupal\lingotek\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#default_value' => NULL,
    '#process' => [
      [
        $class,
        'processJobId',
      ],
      [
        $class,
        'processAjaxForm',
      ],
    ],
    '#element_validate' => [
      [
        $class,
        'validateJobId',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderTextfield',
      ],
    ],
    '#theme' => 'input__textfield',
    '#theme_wrappers' => [
      'form_element',
    ],
  ];
}