You are here

protected function LingotekContentTranslationForm::getOperationColumnId in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  2. 4.0.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  3. 3.0.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  4. 3.1.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  5. 3.2.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  6. 3.3.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  7. 3.4.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  8. 3.5.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  9. 3.6.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  10. 3.7.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
  11. 3.8.x src/Form/LingotekContentTranslationForm.php \Drupal\lingotek\Form\LingotekContentTranslationForm::getOperationColumnId()
2 calls to LingotekContentTranslationForm::getOperationColumnId()
LingotekContentTranslationForm::addOperationLink in src/Form/LingotekContentTranslationForm.php
LingotekContentTranslationForm::removeOperationLink in src/Form/LingotekContentTranslationForm.php

File

src/Form/LingotekContentTranslationForm.php, line 209
Contains \Drupal\lingotek\Form\LingotekContentTranslationForm.

Class

LingotekContentTranslationForm

Namespace

Drupal\lingotek\Form

Code

protected function getOperationColumnId(ContentEntityInterface $entity, array $option) {
  $found = -1;
  foreach ($option as $index => $column) {
    if (is_array($column) && isset($column['data']) && isset($column['data']['#type']) && $column['data']['#type'] === 'operations') {
      $found = $index;
      break;
    }
  }
  return $found;
}