示例#1
0
 /**
  * Get the value.
  *
  * @return string
  */
 public function getValue()
 {
     if ($this->entry instanceof DiskInterface) {
         return '<i class="' . $this->icons->get('server') . '"></i>';
     }
     if ($this->entry instanceof FolderInterface) {
         return '<i class="' . $this->icons->get('folder-closed') . '"></i>';
     }
 }
示例#2
0
 /**
  * Handle the command.
  *
  * @param  IconRegistry $registry
  * @return string
  */
 public function handle(IconRegistry $registry)
 {
     return (new Icon())->setType($registry->get($this->type))->setClass($this->class);
 }