You are here

MetadataInfo.php in Filebrowser 8.2

Same filename and directory in other branches
  1. 3.x src/Events/MetadataInfo.php

File

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

namespace Drupal\filebrowser\Events;

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

}

Classes

Namesort descending Description
MetadataInfo