/** * Return the list * * @return array */ protected function _getList() { $data = parent::_getList(); $data['scopes'] = array(); foreach ($this->_state->scopes as $scope) { $count = $this->_state->getList()->getScopeCount($scope); $data['scopes'][] = array('name' => $scope->getKey(), 'count' => (int) $count); } return $data; }
/** * Return the list. * * @return array */ protected function _getList() { $data = parent::_getList(); $data['pagination']['total'] = count($this->_state->getList()); return $data; }