You are here

UserActionsEvent.php in Filebrowser 3.x

Same filename and directory in other branches
  1. 8.2 src/Events/UserActionsEvent.php

File

src/Events/UserActionsEvent.php
View source
<?php

namespace Drupal\filebrowser\Events;

use Symfony\Contracts\EventDispatcher\Event;
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;
  }

}

Classes

Namesort descending Description
UserActionsEvent