Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FieldsetPool.php
Go to the documentation of this file.
1 <?php
7 
9 
15 {
19  protected $objectManager;
20 
25  {
26  $this->objectManager = $objectManager;
27  }
28 
36  public function get($fieldsetClass)
37  {
38  $handler = $this->objectManager->get($fieldsetClass);
39  if (!$handler instanceof FieldsetInterface) {
40  throw new \InvalidArgumentException(
41  $fieldsetClass . ' doesn\'t implement \Magento\Framework\Indexer\FieldsetInterface'
42  );
43  }
44  return $handler;
45  }
46 }
__construct(ObjectManagerInterface $objectManager)
catch(\Exception $e) $handler
Definition: index.php:30