コード例 #1
0
ファイル: Form.php プロジェクト: dragonsword007008/magento2
 /**
  * @constructor
  * @param ElementInterface $element
  * @param BlockFactory $blockFactory
  * @param BrowserInterface $browser
  * @param array $config
  */
 public function __construct(ElementInterface $element, BlockFactory $blockFactory, BrowserInterface $browser, array $config = [])
 {
     parent::__construct($element, $blockFactory, $browser, $config);
     $this->baseUrl = $this->browser->getUrl();
     if (substr($this->baseUrl, -1) !== '/') {
         $this->baseUrl = $this->baseUrl . '/';
     }
 }
コード例 #2
0
 /**
  * @constructor
  * @param SimpleElement $element
  * @param BlockFactory $blockFactory
  * @param BrowserInterface $browser
  */
 public function __construct(SimpleElement $element, BlockFactory $blockFactory, BrowserInterface $browser)
 {
     parent::__construct($element, $blockFactory, $browser);
 }