
| Current Path : /var/www/html/12park/web/modules/contrib/webform/src/Form/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/12park/web/modules/contrib/webform/src/Form/WebformEntityBulkForm.php |
<?php
namespace Drupal\webform\Form;
/**
* Provides the webform bulk form.
*/
class WebformEntityBulkForm extends WebformBulkFormBase {
/**
* {@inheritdoc}
*/
protected $entityTypeId = 'webform';
/**
* {@inheritdoc}
*/
protected function getActions() {
$actions = parent::getActions();
$is_archived = ($this->getRequest()->query->get('state') === 'archived');
if ($is_archived) {
unset(
$actions['webform_archive_action'],
$actions['webform_open_action'],
$actions['webform_close_action']
);
}
else {
unset($actions['webform_unarchive_action']);
}
return $actions;
}
}