Open Data Catalog v2.0.0
Drupal\datastore\Service\Info\ImportInfoList Class Reference
Inheritance diagram for Drupal\datastore\Service\Info\ImportInfoList:

Public Member Functions

 __construct (JobStoreFactory $jobStoreFactory, ImportInfo $importInfo)
 
 buildList ()
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Detailed Description

Definition of an "importer list" that allows for reporting.

Definition at line 13 of file ImportInfoList.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\datastore\Service\Info\ImportInfoList::__construct ( JobStoreFactory  $jobStoreFactory,
ImportInfo  $importInfo 
)

Constructor.

Definition at line 39 of file ImportInfoList.php.

Member Function Documentation

◆ buildList()

Drupal\datastore\Service\Info\ImportInfoList::buildList ( )

Retrieve stored jobs and build the list array property.

Returns
array An array of ImportInfo objects, keyed by UUID.
Todo:
Going directly to get filefetcher objects does not feel right. We should have cleaner interfaces to get the data we need.

Definition at line 53 of file ImportInfoList.php.

◆ create()

static Drupal\datastore\Service\Info\ImportInfoList::create ( ContainerInterface  $container)
static

Create.

Definition at line 29 of file ImportInfoList.php.