Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Collection.php
Go to the documentation of this file.
1 <?php
7 
13 {
20  public function __construct(
21  \Magento\Framework\View\Asset\Repository $assetRepo,
22  \Magento\Framework\View\LayoutInterface $layout,
23  \Magento\Rule\Model\ActionFactory $actionFactory,
24  array $data = []
25  ) {
26  parent::__construct($assetRepo, $layout, $actionFactory, $data);
27  $this->setType(\Magento\CatalogRule\Model\Rule\Action\Collection::class);
28  }
29 
33  public function getNewChildSelectOptions()
34  {
35  $actions = parent::getNewChildSelectOptions();
36  $actions = array_merge_recursive(
37  $actions,
38  [
39  ['value' => \Magento\CatalogRule\Model\Rule\Action\Product::class, 'label' => __('Update the Product')]
40  ]
41  );
42  return $actions;
43  }
44 }
__()
Definition: __.php:13
__construct(\Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\View\LayoutInterface $layout, \Magento\Rule\Model\ActionFactory $actionFactory, array $data=[])
Definition: Collection.php:20