protected function LingotekManagementForm::getFilterKeys in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8.2 src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 4.0.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 3.0.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 3.1.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 3.2.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 3.3.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 3.5.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 3.6.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 3.7.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
- 3.8.x src/Form/LingotekManagementForm.php \Drupal\lingotek\Form\LingotekManagementForm::getFilterKeys()
Gets the filter keys so we can persist or clear filtering options.
Return value
string[] Array of filter identifiers.
Overrides LingotekManagementFormBase::getFilterKeys
File
- src/
Form/ LingotekManagementForm.php, line 341
Class
- LingotekManagementForm
- Form for bulk management of content.
Namespace
Drupal\lingotek\FormCode
protected function getFilterKeys() {
$groupsExists = $this->moduleHandler
->moduleExists('group') && $this->entityTypeId === 'node';
// We need specific identifiers for default and advanced filters since the advanced filters bundle is unique.
$filtersKeys = [
[
'wrapper',
'label',
],
[
'wrapper',
'bundle',
],
[
'wrapper',
'job',
],
[
'advanced_options',
'document_id',
],
[
'advanced_options',
'entity_id',
],
[
'advanced_options',
'profile',
],
[
'advanced_options',
'source_language',
],
[
'advanced_options',
'source_status',
],
[
'advanced_options',
'target_status',
],
[
'advanced_options',
'content_state',
],
];
if ($groupsExists) {
$filtersKeys[] = [
'wrapper',
'group',
];
}
return $filtersKeys;
}