You are here

WebformEntityBulkForm.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 src/Form/WebformEntityBulkForm.php

File

src/Form/WebformEntityBulkForm.php
View source
<?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;
  }

}

Classes

Namesort descending Description
WebformEntityBulkForm Provides the webform bulk form.