protected function LingotekConfigManagementForm::getActionUrlArguments in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8 src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 8.2 src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 4.0.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 3.0.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 3.2.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 3.3.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 3.4.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 3.5.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 3.6.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 3.7.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
- 3.8.x src/Form/LingotekConfigManagementForm.php \Drupal\lingotek\Form\LingotekConfigManagementForm::getActionUrlArguments()
2 calls to LingotekConfigManagementForm::getActionUrlArguments()
File
- src/
Form/ LingotekConfigManagementForm.php, line 1624
Class
- LingotekConfigManagementForm
- Form for bulk management of content.
Namespace
Drupal\lingotek\FormCode
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;
}