App\FieldSkins\Category\DefaultSkin::show PHP Method

show() public method

조회할 때 사용 될 html 코드 반환 return html tag string
public show ( array $args ) : Illuminate\View\View
$args array arguments
return Illuminate\View\View
    public function show(array $args)
    {
        $item = null;
        if (isset($args[$this->config->get('id') . 'ItemId'])) {
            $item = CategoryItem::find($args[$this->config->get('id') . 'ItemId']);
        }
        $this->addMergeData(['categoryItem' => $item]);
        return parent::show($args);
    }

Usage Example

 public function show(array $args)
 {
     $this->path = parent::getPath();
     return parent::show($args);
 }