src/View/Cell/ResultCell.php
private function getDatatableOptions(): array
    {
        list($plugin, $controller) = pluginSplit($this->entity->get('model'));

        $result = [
            'table_id' => '#' . $this->getTableId(),
            'order' => [$this->getOrderField(), $this->getOrderDirection()],
            'ajax' => [
                'url' => Router::url([
                    'plugin' => $plugin,
                    'controller' => $controller,
                    'action' => $this->action,
                    $this->preSaveId
                ]),
                'columns' => $this->getDatatableColumns(),
                'extras' => ['format' => 'pretty']
            ],
        ];

        if (! $this->getGroupByField() && $this->batch) {
            $result['batch'] = ['id' => Configure::read('Search.batch.button_id')];
        }

        return $result;
    }
private function getDatatableOptions(): array
    {
        list($plugin, $controller) = pluginSplit($this->entity->get('model'));

        $result = [
            'table_id' => '#' . $this->getTableId(),
            'order' => [$this->getOrderField(), $this->getOrderDirection()],
            'ajax' => [
                'url' => Router::url([
                    'plugin' => $plugin,
                    'controller' => $controller,
                    'action' => $this->action,
                    $this->preSaveId
                ]),
                'columns' => $this->getDatatableColumns(),
                'extras' => ['format' => 'pretty']
            ],
        ];

        if (! $this->getGroupByField() && $this->batch) {
            $result['batch'] = ['id' => Configure::read('Search.batch.button_id')];
        }

        return $result;
    }
private function getDatatableOptions ( ) : array { list ( $ plugin , $ controller ) = pluginSplit ( $ this -> entity -> get ( 'model' ) ) ; $ result = [ 'table_id' => '#' . $ this -> getTableId ( ) , 'order' => [ $ this -> getOrderField ( ) , $ this -> getOrderDirection ( ) ] , 'ajax' => [ 'url' => Router :: url ( [ 'plugin' => $ plugin , 'controller' => $ controller , 'action' => $ this -> action , $ this -> preSaveId ] ) , 'columns' => $ this -> getDatatableColumns ( ) , 'extras' => [ 'format' => 'pretty' ] ] , ] ; if ( ! $ this -> getGroupByField ( ) && $ this -> batch ) { $ result [ 'batch' ] = [ 'id' => Configure :: read ( 'Search.batch.button_id' ) ] ; } return $ result ; }
DataTable options getter.

@return mixed[]
DataTable options getter .