You are here

class MetadataEvent in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x src/Events/MetadataEvent.php \Drupal\filebrowser\Events\MetadataEvent

Hierarchy

  • class \Drupal\filebrowser\Events\MetadataEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of MetadataEvent

3 files declare their use of MetadataEvent
DisplayFileList.php in src/File/DisplayFileList.php
MetadataEventSubscriber.php in src/EventSubscriber/MetadataEventSubscriber.php
MetadataEventSubscriber.php in modules/src/EventSubscriber/MetadataEventSubscriber.php

File

src/Events/MetadataEvent.php, line 7

Namespace

Drupal\filebrowser\Events
View source
class MetadataEvent extends Event {

  /**
   * @var array $metadata
   */
  protected $metadata;

  /**
   * @var integer
   * fid of the file owning this event
   */
  protected $fid;
  public $file;

  /**
   * @var integer
   */
  public $subdir_fid;

  /**
   * @var integer
   */
  public $nid;

  /**
   * @var array
   */
  public $columns;

  /**
   * MetadataInfo constructor.
   * @param integer $fid
   * @param integer $subdir_fid
   * @param integer $nid
   * @param array $columns Array containing the selected metadata to be displayed
   * @param \stdClass $file
   */
  public function __construct($nid, $fid, $file, $subdir_fid, $columns) {
    $this->fid = $fid;
    $this->file = $file;
    $this->subdir_fid = $subdir_fid;
    $this->nid = $nid;
    $this->columns = $columns;
    return $this;
  }
  public function getFid() {
    return $this->fid;
  }
  public function setFid($fid) {
    $this->fid = $fid;
  }

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

  /**
   * @param mixed $metadata
   */
  public function setMetadata($metadata) {
    $this->metadata = $metadata;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MetadataEvent::$columns public property
MetadataEvent::$fid protected property fid of the file owning this event
MetadataEvent::$file public property
MetadataEvent::$metadata protected property
MetadataEvent::$nid public property
MetadataEvent::$subdir_fid public property
MetadataEvent::getFid public function
MetadataEvent::getMetadata public function
MetadataEvent::setFid public function
MetadataEvent::setMetadata public function
MetadataEvent::__construct public function MetadataInfo constructor.