/**
  * Handle the command.
  *
  * @param FileTableBuilder $builder
  */
 public function handle(FileTableBuilder $builder)
 {
     $builder->setColumns(['entry.preview' => ['heading' => 'anomaly.module.files::field.preview.name'], 'name' => ['sort_column' => 'name', 'wrapper' => '
                 <h4>
                     {value.link}
                     <br>
                     <small>{value.disk}://{value.folder}/{value.file}</small>
                     <small>{value.size}{value.keywords}</small>
                 </h4>', 'value' => ['file' => 'entry.name', 'link' => 'entry.edit_link', 'folder' => 'entry.folder.slug', 'keywords' => 'entry.keywords.labels', 'disk' => 'entry.folder.disk.slug', 'size' => function (FileInterface $entry) {
         if (!in_array($entry->getExtension(), config('anomaly.module.files::mimes.thumbnails'))) {
             return null;
         }
         return '<span class="label label-info">' . $entry->getWidth() . ' x ' . $entry->getHeight() . '</span>';
     }]]]);
 }
 /**
  * Return an index of existing files.
  *
  * @param FileTableBuilder $table
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function index(FileTableBuilder $table)
 {
     return $table->setMode($this->request->get('mode', 'file'))->render();
 }