80 if ($this->collection ==
null) {
81 $this->collection = $this->orderStatusCollectionFactory->create()->joinStates();
111 $status = $this->orderStatusFactory->create()->loadDefaultByState(
$state);
125 $area = $this->state->getAreaCode();
127 $status = $this->orderStatusFactory->create()->load(
$code);
129 if ($area ==
'adminhtml') {
133 return $status->getStoreLabel();
145 if (isset($this->maskStatusesMapping[$area][
$code])) {
146 return $this->maskStatusesMapping[$area][
$code];
160 $label = $stateItem->getData(
'label');
173 $statuses = $this->orderStatusCollectionFactory->create()->toOptionHash();
186 if (
$item->getState()) {
187 $states[
$item->getState()] =
__(
$item->getData(
'label'));
204 $key = sha1(json_encode([
$state, $addLabels]));
205 if (isset($this->stateStatuses[$key])) {
206 return $this->stateStatuses[$key];
213 foreach (
$state as $_state) {
216 $collection = $this->orderStatusCollectionFactory->create()->addStateFilter($_state)->orderByLabel();
227 $this->stateStatuses[$key] = $statuses;
260 if ($this->statuses ==
null) {
266 $visible = (bool)
$item->getData(
'visible_on_front');
267 $this->statuses[$visible][] =
$item->getData(
'status');
270 return $this->statuses[(bool) $visibility];
getVisibleOnFrontStatuses()
__construct(\Magento\Sales\Model\Order\StatusFactory $orderStatusFactory, \Magento\Sales\Model\ResourceModel\Order\Status\CollectionFactory $orderStatusCollectionFactory, \Magento\Framework\App\State $state)
getInvisibleOnFrontStatuses()
getStateDefaultStatus($state)
getStateLabelByStateAndStatus($state, $status)
_getStatuses($visibility)
maskStatusForArea($area, $code)
const STATE_PAYMENT_REVIEW
$orderStatusCollectionFactory
getStateStatuses($state, $addLabels=true)