public function MetadataInfoEventSubscriber::setInfo in Filebrowser 8.2
Same name in this branch
- 8.2 src/EventSubscriber/MetadataInfoEventSubscriber.php \Drupal\filebrowser\EventSubscriber\MetadataInfoEventSubscriber::setInfo()
- 8.2 modules/src/EventSubscriber/MetadataInfoEventSubscriber.php \Drupal\filebrowser_extra\EventSubscriber\MetadataInfoEventSubscriber::setInfo()
Same name and namespace in other branches
- 3.x modules/src/EventSubscriber/MetadataInfoEventSubscriber.php \Drupal\filebrowser_extra\EventSubscriber\MetadataInfoEventSubscriber::setInfo()
File
- modules/
src/ EventSubscriber/ MetadataInfoEventSubscriber.php, line 15
Class
Namespace
Drupal\filebrowser_extra\EventSubscriberCode
public function setInfo($event) {
/** @var MetadataInfo $event */
$data = $event
->getMetaDataInfo();
$data['modified'] = [
'title' => t('Modified'),
//'sortable' => TRUE,
'type' => 'integer',
];
$event
->setMetaDataInfo($data);
}