Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
WysiwygPlugin.php
Go to the documentation of this file.
1 <?php
8 
16 {
22  public function execute()
23  {
24  $customVariables = $this->_objectManager->create(\Magento\Variable\Model\Variable::class)
25  ->getVariablesOptionArray(true);
26  $storeContactVariables = $this->_objectManager->create(
27  \Magento\Variable\Model\Source\Variables::class
28  )->toOptionArray(
29  true
30  );
32  $resultJson = $this->resultJsonFactory->create();
33  return $resultJson->setData([$storeContactVariables, $customVariables]);
34  }
35 }