Model/ResourceModel/Importer/Collection.php
public function getItemsWithImportingStatus($limit)
    {
        $collection = $this->addFieldToFilter(
            'import_status',
            ['eq' => \Dotdigitalgroup\Email\Model\Importer::IMPORTING]
        )
            ->addFieldToFilter('import_id', ['neq' => ''])
            ->setPageSize($limit)
            ->setCurPage(1);

        if ($collection->getSize()) {
            return $collection;
        }

        return false;
    }
public function getItemsWithImportingStatus($limit)
    {
        $collection = $this->addFieldToFilter(
            'import_status',
            ['eq' => \Dotdigitalgroup\Email\Model\Importer::IMPORTING]
        )
            ->addFieldToFilter('import_id', ['neq' => ''])
            ->setPageSize($limit)
            ->setCurPage(1);

        if ($collection->getSize()) {
            return $collection;
        }

        return false;
    }
public function getItemsWithImportingStatus ( $ limit ) { $ collection = $ this -> addFieldToFilter ( 'import_status' , [ 'eq' => \ Dotdigitalgroup \ Email \ Model \ Importer :: IMPORTING ] ) -> addFieldToFilter ( 'import_id' , [ 'neq' => '' ] ) -> setPageSize ( $ limit ) -> setCurPage ( 1 ) ; if ( $ collection -> getSize ( ) ) { return $ collection ; } return false ; }
Get imports marked as importing.

@param int $limit

@return $this|boolean
Get imports marked as importing .