You are here

protected function LingotekConfigManagementForm::getActionUrlArguments in Lingotek Translation 8

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

File

src/Form/LingotekConfigManagementForm.php, line 1222
Contains \Drupal\Lingotek\Form\LingotekConfigManagementForm.

Class

LingotekConfigManagementForm
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

protected function getActionUrlArguments(ConfigMapperInterface &$mapper) {
  $args = [
    'entity_type' => $mapper
      ->getPluginId(),
    'entity_id' => $mapper
      ->getPluginId(),
  ];
  if ($mapper instanceof ConfigEntityMapper && !$mapper instanceof ConfigFieldMapper) {
    $args['entity_id'] = $mapper
      ->getEntity()
      ->id();
  }
  else {
    if ($mapper instanceof ConfigFieldMapper) {
      $args['entity_type'] = $mapper
        ->getType();
      $args['entity_id'] = $mapper
        ->getEntity()
        ->id();
    }
  }
  return $args;
}