Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ContextFactory.php
Go to the documentation of this file.
1 <?php
7 
9 {
13  protected $objectManager;
14 
19  {
20  $this->objectManager = $objectManager;
21  }
22 
29  public function create(array $data = [])
30  {
31  return $this->objectManager->create(\Magento\Framework\View\Layout\Reader\Context::class, $data);
32  }
33 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)