Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UrlInput.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
14 class UrlInput extends \Magento\Ui\Component\Form\Element\AbstractElement
15 {
16  const NAME = 'urlInput';
17 
23  public function getComponentName(): string
24  {
25  return static::NAME;
26  }
27 
31  public function prepare(): void
32  {
33  $config = $this->getData('config');
34  //process urlTypes
35  if (isset($config['urlTypes'])) {
36  $links = $config['urlTypes']->getConfig();
37  $config['urlTypes'] = $links;
38  }
39  $this->setData('config', (array)$config);
40  parent::prepare();
41  }
42 }
$config
Definition: fraud_order.php:17