Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Widget
Test
Block
Adminhtml
Widget
WidgetGrid.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Widget\Test\Block\Adminhtml\Widget
;
8
9
use
Magento\Backend\Test\Block\Widget\Grid
as
AbstractGrid
;
10
use Magento\Mtf\Client\Locator;
11
15
class
WidgetGrid
extends
AbstractGrid
16
{
22
private
$notEmptyOptionsSelector =
'option:not([value=""])'
;
23
29
protected
$editLink
=
'tbody tr td.col-title'
;
30
36
protected
$firstRowSelector
=
'//tbody//tr[@data-role="row"]/td[contains(@class, "col-title")][1]'
;
37
43
protected
$filters
= [
44
'title'
=> [
45
'selector'
=>
'input[name="title"]'
,
46
],
47
'theme_id'
=> [
48
'selector'
=>
'select[name="theme_id"]'
,
49
'input'
=>
'select'
,
50
],
51
];
52
58
public
function
getThemeIdValues
()
59
{
60
$values
= [];
61
$themeFilter = $this->filters[
'theme_id'
];
62
$strategy = empty($themeFilter[
'strategy'
]) ? Locator::SELECTOR_CSS : $themeFilter[
'strategy'
];
63
$element
= $this->_rootElement->find($themeFilter[
'selector'
], $strategy, $themeFilter[
'input'
]);
64
$options
=
$element
->getElements($this->notEmptyOptionsSelector);
65
foreach
(
$options
as
$option
) {
66
$values
[] =
$option
->getText();
67
}
68
69
return
$values
;
70
}
71
}
Magento\Widget\Test\Block\Adminhtml\Widget\WidgetGrid\$firstRowSelector
$firstRowSelector
Definition:
WidgetGrid.php:36
Magento\Widget\Test\Block\Adminhtml\Widget\WidgetGrid\$filters
$filters
Definition:
WidgetGrid.php:43
$values
$values
Definition:
options.phtml:88
Magento\Widget\Test\Block\Adminhtml\Widget\WidgetGrid\$editLink
$editLink
Definition:
WidgetGrid.php:29
Magento\Widget\Test\Block\Adminhtml\Widget
Definition:
ChosenOption.php:7
Magento\Backend\Test\Block\Widget\Grid
Definition:
Grid.php:21
Magento\Sales\Model\ResourceModel\Grid
Definition:
Collection.php:6
Magento\Widget\Test\Block\Adminhtml\Widget\WidgetGrid\getThemeIdValues
getThemeIdValues()
Definition:
WidgetGrid.php:58
Magento\Backend\Block\Widget\Grid
$option
$option
Definition:
product_configurable_with_single_child.php:38
$options
$options
Definition:
multiple_mixed_products.php:29
$element
$element
Definition:
element.phtml:12