Serverfireteam\Panel\LinkController::all PHP Method

all() public method

public all ( $entity )
    public function all($entity)
    {
        parent::all($entity);
        $this->filter = \DataFilter::source(new Link());
        $this->filter->add('id', 'ID', 'text');
        $this->filter->add('display', 'Display', 'text');
        $this->filter->submit('search');
        $this->filter->reset('reset');
        $this->filter->build();
        $this->grid = \DataGrid::source($this->filter);
        $this->grid->add('id', 'ID', true)->style("width:100px");
        $this->grid->add('display', 'Display');
        $this->grid->add('url', 'Model');
        $this->grid->add('show_menu', 'Show in Menu')->cell(function ($value, $row) {
            return $value ? "True" : "False";
        });
        $this->addStylesToGrid();
        return $this->returnView();
    }
LinkController