public function getStateElement($state = null) {
		if (is_bool($state) && ($state === true)) {
			$state = 2;
		}

		switch ((int)$state) {
			case 2:
				$stateText = $this->Html->tag('span', '', ['class' => 'fas fa-check']);
				$titleText = __d('cake_installer', 'Ok');
				$labelClass = 'label-success';
				break;
			case 1:
				$stateText = $this->Html->tag('span', '', ['class' => 'fas fa-minus']);
				$titleText = __d('cake_installer', 'Ok');
				$labelClass = 'label-warning';
				break;
			default:
				$stateText = $this->Html->tag('span', '', ['class' => 'fas fa-times']);
				$titleText = __d('cake_installer', 'Bad');
				$labelClass = 'label-danger';
		}

		return $this->Html->tag('span', $stateText, [
			'class' => 'label' . ' ' . $labelClass,
			'title' => $titleText, 'data-toggle' => 'tooltip']);
	}