WebformEntityBulkForm.php in Webform 6.x
File
src/Form/WebformEntityBulkForm.php
View source
<?php
namespace Drupal\webform\Form;
class WebformEntityBulkForm extends WebformBulkFormBase {
protected $entityTypeId = 'webform';
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;
}
}