Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Config.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
16 {
20  private $backendUrl;
21 
25  public function __construct(
26  \Magento\Backend\Model\UrlInterface $backendUrl
27  ) {
28  $this->backendUrl = $backendUrl;
29  }
30 
37  public function getConfig(\Magento\Framework\DataObject $config) : \Magento\Framework\DataObject
38  {
39  $config->addData(
40  [
41  'add_images' => true,
42  'files_browser_window_url' => $this->backendUrl->getUrl('cms/wysiwyg_images/index'),
43  ]
44  );
45 
46  return $config;
47  }
48 }
$config
Definition: fraud_order.php:17