You are here

protected function LingotekConfigManagementForm::getActionUrlArguments in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 8 src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
  2. 8.2 src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
  3. 4.0.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
  4. 3.0.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
  5. 3.1.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
  6. 3.2.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
  7. 3.3.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
  8. 3.4.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
  9. 3.5.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 1642

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();
  }
  elseif ($mapper instanceof ConfigFieldMapper) {
    $args['entity_type'] = $mapper
      ->getType();
    $args['entity_id'] = $mapper
      ->getEntity()
      ->id();
  }
  return $args;
}