You are here

public function MetadataEvent::__construct in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 src/Events/MetadataEvent.php \Drupal\filebrowser\Events\MetadataEvent::__construct()

MetadataInfo constructor.

Parameters

integer $fid:

integer $subdir_fid:

integer $nid:

array $columns Array containing the selected metadata to be displayed:

\stdClass $file:

File

src/Events/MetadataEvent.php, line 46

Class

MetadataEvent

Namespace

Drupal\filebrowser\Events

Code

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;
}