You are here

protected function LingotekManagementFormBase::canHaveDeleteBulkOptions in Lingotek Translation 3.1.x

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

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

Return value

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

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

File

src/Form/LingotekManagementFormBase.php, line 1538

Class

LingotekManagementFormBase
Form for bulk management of content.

Namespace

Drupal\lingotek\Form

Code

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