Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AsyncIndexing.php
Go to the documentation of this file.
1 <?php
7 
12 class AsyncIndexing extends \Magento\Framework\App\Config\Value
13 {
25  public function afterSave()
26  {
27  if ($this->isValueChanged()) {
28  $state = $this->getValue() ? 'enabled' : 'disabled';
29 
30  $this->_eventManager->dispatch(
31  $this->_eventPrefix . '_dev_grid_async_indexing_' . $state,
32  $this->_getEventData()
33  );
34  }
35 
36  return $this;
37  }
38 }
getValue( $path=null, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null)
Definition: Config.php:56