You are here

class MetadataInfo in Filebrowser 8.2

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

Hierarchy

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

Expanded class hierarchy of MetadataInfo

4 files declare their use of MetadataInfo
FilebrowserManager.php in src/FilebrowserManager.php
MetadataInfoEventSubscriber.php in src/EventSubscriber/MetadataInfoEventSubscriber.php
MetadataInfoEventSubscriber.php in modules/src/EventSubscriber/MetadataInfoEventSubscriber.php
Presentation.php in src/Presentation.php

File

src/Events/MetadataInfo.php, line 7

Namespace

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

  /**
   *  @var array
   *  $metaDataInfo is an associative array with following fields
   *  'key' = [
   *    'title' => t('Description'), // required
   *    'writable' => TRUE,          // optional, default false
   *    'sortable' => TRUE,          // optional, default false
   *    'type' => 'string            // required
   */
  protected $metaDataInfo;

  /**
   * MetadataInfo constructor.
   * @param $metaDataInfo
   */
  public function __construct($metaDataInfo) {
    $this->metaDataInfo = $metaDataInfo;
  }

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
MetadataInfo::$metaDataInfo protected property $metaDataInfo is an associative array with following fields 'key' = [ 'title' => t('Description'), // required 'writable' => TRUE, // optional, default false 'sortable' => TRUE, …
MetadataInfo::getMetaDataInfo public function
MetadataInfo::setMetaDataInfo public function
MetadataInfo::__construct public function MetadataInfo constructor.