edit() public method

수정 form 에 추가될 html 코드 반환 return html tag string
public edit ( array $args ) : Illuminate\View\View
$args array parameters
return Illuminate\View\View
 public function edit(array $args)
 {
     $selectItems = [];
     $categoryItems = Category::find($this->config->get('categoryId'))->items;
     foreach ($categoryItems as $categoryItem) {
         $selectItems[] = ['value' => $categoryItem->id, 'text' => $categoryItem->word];
     }
     $this->addMergeData(['selectItems' => $selectItems]);
     return parent::edit($args);
 }