src/Charcoal/Admin/Template/Object/CollectionTemplate.php
public function searchWidget()
    {
        $widget = $this->widgetFactory()->create(SearchWidget::class);
        $widget->setObjType($this->objType());

        $listIdent = $this->metadataListIdent();

        // Note that if the ident doesn't match a list,
        // it will return basicly every properties of the object
        $widget->setCollectionIdent($listIdent);

        return $widget;
    }
public function searchWidget()
    {
        $widget = $this->widgetFactory()->create(SearchWidget::class);
        $widget->setObjType($this->objType());

        $listIdent = $this->metadataListIdent();

        // Note that if the ident doesn't match a list,
        // it will return basicly every properties of the object
        $widget->setCollectionIdent($listIdent);

        return $widget;
    }
public function searchWidget ( ) { $ widget = $ this -> widgetFactory ( ) -> create ( SearchWidget :: class ) ; $ widget -> setObjType ( $ this -> objType ( ) ) ; $ listIdent = $ this -> metadataListIdent ( ) ; // Note that if the ident doesn't match a list, // it will return basicly every properties of the object $ widget -> setCollectionIdent ( $ listIdent ) ; return $ widget ; }
Sets the search widget accodingly
Uses the "default_search_list" ident that should point
on ident in the "lists"

@return \Charcoal\Admin\Widget\SearchWidget
Sets the search widget accodingly Uses the default_search_list ident that should point on ident in the lists