Model/ResourceModel/Automation/Collection.php
public function getAutomationStatusType()
    {
        $automationOrderStatusCollection = $this->addFieldToFilter(
            'enrolment_status',
            \Dotdigitalgroup\Email\Model\Sync\Automation::AUTOMATION_STATUS_PENDING
        );
        $automationOrderStatusCollection
            ->addFieldToFilter(
                'automation_type',
                ['like' => '%' . \Dotdigitalgroup\Email\Model\Sync\Automation::ORDER_STATUS_AUTOMATION . '%']
            )->getSelect()
            ->group('automation_type');

        return $automationOrderStatusCollection->getColumnValues('automation_type');
    }
public function getAutomationStatusType()
    {
        $automationOrderStatusCollection = $this->addFieldToFilter(
            'enrolment_status',
            \Dotdigitalgroup\Email\Model\Sync\Automation::AUTOMATION_STATUS_PENDING
        );
        $automationOrderStatusCollection
            ->addFieldToFilter(
                'automation_type',
                ['like' => '%' . \Dotdigitalgroup\Email\Model\Sync\Automation::ORDER_STATUS_AUTOMATION . '%']
            )->getSelect()
            ->group('automation_type');

        return $automationOrderStatusCollection->getColumnValues('automation_type');
    }
public function getAutomationStatusType ( ) { $ automationOrderStatusCollection = $ this -> addFieldToFilter ( 'enrolment_status' , \ Dotdigitalgroup \ Email \ Model \ Sync \ Automation :: AUTOMATION_STATUS_PENDING ) ; $ automationOrderStatusCollection -> addFieldToFilter ( 'automation_type' , [ 'like' => '%' . \ Dotdigitalgroup \ Email \ Model \ Sync \ Automation :: ORDER_STATUS_AUTOMATION . '%' ] ) -> getSelect ( ) -> group ( 'automation_type' ) ; return $ automationOrderStatusCollection -> getColumnValues ( 'automation_type' ) ; }
Get automation status type

@return array
Get automation status type