Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PaymentInfoBlock.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Block;
10 
14 class PaymentInfoBlock extends Block
15 {
21  private $info = 'tr';
22 
28  public function getData()
29  {
30  $result = [];
31  $elements = $this->_rootElement->getElements($this->info);
32  foreach ($elements as $row) {
33  $key = rtrim($row->find('th')->getText(), ':');
34  $value = $row->find('td')->getText();
35  $result[$key] = $value;
36  }
37 
38  return $result;
39  }
40 }
$value
Definition: gender.phtml:16