public function create(array $data = [])
    {
        $engine = $this->scopeConfig->getValue($this->configPath, ScopeInterface::SCOPE_STORE);

        $fullActionClass = $this->fullActionPool['default'];

        if (isset($this->fullActionPool[$engine])) {
            $fullActionClass = $this->fullActionPool[$engine];
        }

        return $this->objectManager->create($fullActionClass, ['data' => $data]);
    }
public function create(array $data = [])
    {
        $engine = $this->scopeConfig->getValue($this->configPath, ScopeInterface::SCOPE_STORE);

        $fullActionClass = $this->fullActionPool['default'];

        if (isset($this->fullActionPool[$engine])) {
            $fullActionClass = $this->fullActionPool[$engine];
        }

        return $this->objectManager->create($fullActionClass, ['data' => $data]);
    }
public function create ( array $ data = [ ] ) { $ engine = $ this -> scopeConfig -> getValue ( $ this -> configPath , ScopeInterface :: SCOPE_STORE ) ; $ fullActionClass = $ this -> fullActionPool [ 'default' ] ; if ( isset ( $ this -> fullActionPool [ $ engine ] ) ) { $ fullActionClass = $ this -> fullActionPool [ $ engine ] ; } return $ this -> objectManager -> create ( $ fullActionClass , [ 'data' => $ data ] ) ; }
Create an indexer using the right class depending of the configuration.

@param array $data Data passed to the indexer while it is instantiated.

@return mixed
Create an indexer using the right class depending of the configuration .