Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
GridAsyncInsert Class Reference

Public Member Functions

 __construct (\Magento\Sales\Model\GridAsyncInsert $asyncInsert)
 
 execute ()
 

Protected Attributes

 $asyncInsert
 

Detailed Description

Sales entity grids indexing observer.

Performs handling cron jobs related to indexing of Order, Invoice, Shipment and Creditmemo grids.

Definition at line 14 of file GridAsyncInsert.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Sales\Model\GridAsyncInsert  $asyncInsert)
Parameters
\Magento\Sales\Model\GridAsyncInsert$asyncInsert

Definition at line 24 of file GridAsyncInsert.php.

26  {
27  $this->asyncInsert = $asyncInsert;
28  }

Member Function Documentation

◆ execute()

execute ( )

Handles asynchronous insertion of the new entity into corresponding grid during cron job.

Also method is used in the next events:

  • config_data_dev_grid_async_indexing_disabled

Works only if asynchronous grid indexing is enabled in global settings.

Returns
void

Definition at line 43 of file GridAsyncInsert.php.

44  {
45  $this->asyncInsert->asyncInsert();
46  }

Field Documentation

◆ $asyncInsert

$asyncInsert
protected

Definition at line 19 of file GridAsyncInsert.php.


The documentation for this class was generated from the following file: