public function getBarStateInfo() {
		$result = [];
		$fields = [
			'count(*) AS amount',
			$this->alias . '.status'
		];
		$group = $this->alias . '.status';
		$order = [$this->alias . '.status' => 'asc'];
		$this->recursive = -1;
		$data = $this->find('all', compact('fields', 'group', 'order'));
		if (empty($data)) {
			return $result;
		}

		$taskStateList = $this->getListTaskState();
		$taskClassList = $this->getListBarStateClass();
		foreach ($data as $dataItem) {
			$stateId = $dataItem[$this->alias]['status'];
			$stateName = Hash::get($taskStateList, $stateId);
			$class = Hash::get($taskClassList, $stateId);
			$amount = (int)Hash::get($dataItem, '0.amount');
			$stateUrl = ['controller' => 'queues', 'action' => 'index', 'plugin' => 'cake_settings_app',
				'?' => ['data[FilterData][0][' . $this->alias . '][status]' => $stateId]];
			$result[] = compact('stateName', 'stateId', 'amount', 'stateUrl', 'class');
		}

		return $result;
	}