public function run(array $exportContentTypes, MutableBag $responseBag, $includeUsers = false)
    {
        // Get initial data object
        $exportData = MutableBag::from([]);
        // Add the meta header
        $this->addExportMeta($exportData);
        if ($includeUsers) {
            $this->addExportUsers($exportData);
        }

        // Add records for each ContentType
        foreach ($exportContentTypes as $contentTypeName) {
            $exportData->set($contentTypeName, MutableBag::from([]));
            $this->getRecords($contentTypeName, $exportData, $responseBag);
        }

        return $exportData;
    }
public function run(array $exportContentTypes, MutableBag $responseBag, $includeUsers = false)
    {
        // Get initial data object
        $exportData = MutableBag::from([]);
        // Add the meta header
        $this->addExportMeta($exportData);
        if ($includeUsers) {
            $this->addExportUsers($exportData);
        }

        // Add records for each ContentType
        foreach ($exportContentTypes as $contentTypeName) {
            $exportData->set($contentTypeName, MutableBag::from([]));
            $this->getRecords($contentTypeName, $exportData, $responseBag);
        }

        return $exportData;
    }
public function run ( array $ exportContentTypes , MutableBag $ responseBag , $ includeUsers = false ) { // Get initial data object $ exportData = MutableBag :: from ( [ ] ) ; // Add the meta header $ this -> addExportMeta ( $ exportData ) ; if ( $ includeUsers ) { $ this -> addExportUsers ( $ exportData ) ; } // Add records for each ContentType foreach ( $ exportContentTypes as $ contentTypeName ) { $ exportData -> set ( $ contentTypeName , MutableBag :: from ( [ ] ) ) ; $ this -> getRecords ( $ contentTypeName , $ exportData , $ responseBag ) ; } return $ exportData ; }
Run the export process and return the data.

@param array      $exportContentTypes
@param MutableBag $responseBag
@param bool       $includeUsers

@throws \Bolt\Exception\InvalidRepositoryException

@return MutableBag
Run the export process and return the data .