Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TriggerFactory.php
Go to the documentation of this file.
1 <?php
7 
9 {
13  protected $objectManager;
14 
18  const INSTANCE_NAME = \Magento\Framework\DB\Ddl\Trigger::class;
19 
24  {
25  $this->_objectManager = $objectManager;
26  }
27 
34  public function create(array $data = [])
35  {
36  return $this->_objectManager->create(self::INSTANCE_NAME, $data);
37  }
38 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)