protected function getDeliveryStates($locale)
    {
        $states = $this->getDeliveryStatusManager()->findAll($locale);

        $deliveryStates = [];
        foreach ($states as $state) {
            $deliveryStates[] = [
                'id' => $state->getId(),
                'name' => $state->getName(),
            ];
        }

        return $deliveryStates;
    }