You are here

class UserActionsEvent in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 src/Events/UserActionsEvent.php \Drupal\filebrowser\Events\UserActionsEvent

Hierarchy

  • class \Drupal\filebrowser\Events\UserActionsEvent extends \Symfony\Contracts\EventDispatcher\Event

Expanded class hierarchy of UserActionsEvent

1 file declares its use of UserActionsEvent
UserActionsEventSubscriber.php in src/EventSubscriber/UserActionsEventSubscriber.php

File

src/Events/UserActionsEvent.php, line 7

Namespace

Drupal\filebrowser\Events
View source
class UserActionsEvent extends Event {
  protected $actions;
  protected $fileData;

  /**
   * ActionsInfoEvent constructor.
   * @param array $actions
   * @param array $fileData Array containing a list of files to be displayed
   * on a filebrowser node.
   */
  public function __construct($actions, $fileData) {
    $this->actions = $actions;
    $this->fileData = $fileData;
  }

  /**
   * @return mixed
   */
  public function getActions() {
    return $this->actions;
  }

  /**
   * @param mixed $actions
   */
  public function setActions($actions) {
    $this->actions = $actions;
  }
  public function getFileData() {
    return $this->fileData;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
UserActionsEvent::$actions protected property
UserActionsEvent::$fileData protected property
UserActionsEvent::getActions public function
UserActionsEvent::getFileData public function
UserActionsEvent::setActions public function
UserActionsEvent::__construct public function ActionsInfoEvent constructor.