Model/ResourceModel/Contact/Collection.php
public function getContactsToImportForWebsite($websiteId, $pageSize = 100)
    {
        $collection = $this->addFieldToFilter('website_id', $websiteId)
            ->addFieldToFilter('email_imported', ['null' => true])
            ->addFieldToFilter('customer_id', ['neq' => '0']);

        $collection->getSelect()->limit($pageSize);

        return $collection;
    }
public function getContactsToImportForWebsite($websiteId, $pageSize = 100)
    {
        $collection = $this->addFieldToFilter('website_id', $websiteId)
            ->addFieldToFilter('email_imported', ['null' => true])
            ->addFieldToFilter('customer_id', ['neq' => '0']);

        $collection->getSelect()->limit($pageSize);

        return $collection;
    }
public function getContactsToImportForWebsite ( $ websiteId , $ pageSize = 100 ) { $ collection = $ this -> addFieldToFilter ( 'website_id' , $ websiteId ) -> addFieldToFilter ( 'email_imported' , [ 'null' => true ] ) -> addFieldToFilter ( 'customer_id' , [ 'neq' => '0' ] ) ; $ collection -> getSelect ( ) -> limit ( $ pageSize ) ; return $ collection ; }
Get all customer contacts not imported for a website.

@param int $websiteId
@param int $pageSize

@return $this
Get all customer contacts not imported for a website .