/**
  * @return ArrayDataProvider|DataProviderInterface
  */
 protected function getDataProvider()
 {
     if (!$this->provider) {
         $this->provider = new ArrayDataProvider(DefaultFixture::getArray());
     }
     return $this->provider;
 }
Ejemplo n.º 2
0
 protected function makeGrid()
 {
     return $this->grid = new Grid(new ArrayDataProvider(DefaultFixture::getArray()), [new Column('id'), new Column('role')]);
 }