You are here

protected function LingotekIntelligenceMetadataForm::getIntelligenceMetadata in Lingotek Translation 3.8.x

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

Helper method for getting the Lingotek intelligence metadata.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

LingotekIntelligenceMetadataInterface Returns the Lingotek intelligence metadata this form applies to.

2 calls to LingotekIntelligenceMetadataForm::getIntelligenceMetadata()
LingotekIntelligenceMetadataForm::buildForm in src/Form/LingotekIntelligenceMetadataForm.php
Form constructor.
LingotekIntelligenceMetadataForm::submitForm in src/Form/LingotekIntelligenceMetadataForm.php
Form submission handler.

File

src/Form/LingotekIntelligenceMetadataForm.php, line 362

Class

LingotekIntelligenceMetadataForm
Helper class for creating the form for setting up the intelligence metadata.

Namespace

Drupal\lingotek\Form

Code

protected function getIntelligenceMetadata(FormStateInterface $form_state) {
  $buildInfo = $form_state
    ->getBuildInfo();
  return $buildInfo['args'][1];
}