src/View/Cell/ResultCell.php
private function getDatatableColumns(): array
    {
        $result = $this->getDisplayColumns();

        if (!$this->getGroupByField()) {
            $result[] = Utility::MENU_PROPERTY_NAME;
        }

        if (!$this->getGroupByField() && $this->batch) {
            $table = TableRegistry::get($this->entity->get('model'));
            // add primary key in FIRST position
            foreach ((array)$table->getPrimaryKey() as $primaryKey) {
                array_unshift($result, $table->aliasField($primaryKey));
            }
        }

        return $result;
    }
private function getDatatableColumns(): array
    {
        $result = $this->getDisplayColumns();

        if (!$this->getGroupByField()) {
            $result[] = Utility::MENU_PROPERTY_NAME;
        }

        if (!$this->getGroupByField() && $this->batch) {
            $table = TableRegistry::get($this->entity->get('model'));
            // add primary key in FIRST position
            foreach ((array)$table->getPrimaryKey() as $primaryKey) {
                array_unshift($result, $table->aliasField($primaryKey));
            }
        }

        return $result;
    }
private function getDatatableColumns ( ) : array { $ result = $ this -> getDisplayColumns ( ) ; if ( ! $ this -> getGroupByField ( ) ) { $ result [ ] = Utility :: MENU_PROPERTY_NAME ; } if ( ! $ this -> getGroupByField ( ) && $ this -> batch ) { $ table = TableRegistry :: get ( $ this -> entity -> get ( 'model' ) ) ; // add primary key in FIRST position foreach ( ( array ) $ table -> getPrimaryKey ( ) as $ primaryKey ) { array_unshift ( $ result , $ table -> aliasField ( $ primaryKey ) ) ; } } return $ result ; }
DataTable columns getter.

@return mixed[]
DataTable columns getter .