You are here

protected function LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  2. 4.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  3. 3.0.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  4. 3.1.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  5. 3.2.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  6. 3.3.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  7. 3.5.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  8. 3.6.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  9. 3.7.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
  10. 3.8.x src/Form/LingotekManagementFormBase.php \Drupal\lingotek\Form\LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()

Check if we can delete translation in bulk based on the entity definition.

Return value

bool TRUE if can delete translation in bulk, FALSE if cannot.

1 call to LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
LingotekManagementFormBase::generateBulkOptions in src/Form/LingotekManagementFormBase.php
Get the bulk operations for the management form.
2 methods override LingotekManagementFormBase::canHaveDeleteTranslationBulkOptions()
LingotekJobManagementContentEntitiesForm::canHaveDeleteTranslationBulkOptions in src/Form/LingotekJobManagementContentEntitiesForm.php
Check if we can delete translation in bulk based on the entity definition.
LingotekManagementRelatedEntitiesForm::canHaveDeleteTranslationBulkOptions in src/Form/LingotekManagementRelatedEntitiesForm.php
Check if we can delete translation in bulk based on the entity definition.

File

src/Form/LingotekManagementFormBase.php, line 1688

Class

LingotekManagementFormBase
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

protected function canHaveDeleteTranslationBulkOptions() {
  return $this->entityTypeManager
    ->getDefinition($this->entityTypeId)
    ->hasLinkTemplate('delete-multiple-form');
}