class MetadataEvent in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Events/MetadataEvent.php \Drupal\filebrowser\Events\MetadataEvent
Hierarchy
- class \Drupal\filebrowser\Events\MetadataEvent extends \Symfony\Contracts\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\EventsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetadataEvent:: |
public | property | ||
MetadataEvent:: |
protected | property | fid of the file owning this event | |
MetadataEvent:: |
public | property | ||
MetadataEvent:: |
protected | property | ||
MetadataEvent:: |
public | property | ||
MetadataEvent:: |
public | property | ||
MetadataEvent:: |
public | function | ||
MetadataEvent:: |
public | function | ||
MetadataEvent:: |
public | function | ||
MetadataEvent:: |
public | function | ||
MetadataEvent:: |
public | function | MetadataInfo constructor. |