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
framework
Indexer
Test
Unit
_files
indexer_config.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'inputXML'
=>
'<?xml version="1.0" encoding="UTF-8"?><config>'
.
8
'<indexer id="indexer_internal_name" view_id="view01" class="Index\Class\Name">'
.
9
'<title translate="true">'
.
10
'Indexer public name</title><description translate="true">Indexer public description</description>'
11
.
'<dependencies><indexer id="test_indexer_with_dependencies"/></dependencies>'
12
.
'</indexer>'
13
.
'<indexer id="test_indexer_with_dependencies" class="Index\Temp">'
14
.
'<dependencies><indexer id="test_indexer"/></dependencies>'
15
.
'</indexer>'
16
.
'<indexer id="test_indexer">'
17
.
'Indexer public description'
18
.
'</indexer>'
19
.
'</config>'
,
20
'expected'
=> [
21
'test_indexer'
=> [
22
'indexer_id'
=>
'test_indexer'
,
23
'view_id'
=>
''
,
24
'action_class'
=>
''
,
25
'title'
=>
''
,
26
'description'
=>
''
,
27
'primary'
=>
null
,
28
'shared_index'
=>
null
,
29
'dependencies'
=> [],
30
],
31
'test_indexer_with_dependencies'
=> [
32
'indexer_id'
=>
'test_indexer_with_dependencies'
,
33
'view_id'
=>
''
,
34
'action_class'
=>
'Index\Temp'
,
35
'title'
=>
''
,
36
'description'
=>
''
,
37
'primary'
=>
null
,
38
'shared_index'
=>
null
,
39
'fieldsets'
=> [],
40
'dependencies'
=> [
'test_indexer'
],
41
],
42
'indexer_internal_name'
=> [
43
'indexer_id'
=>
'indexer_internal_name'
,
44
'view_id'
=>
'view01'
,
45
'action_class'
=>
'Index\Class\Name'
,
46
'title'
=>
__
(
'Indexer public name'
),
47
'description'
=>
__
(
'Indexer public description'
),
48
'primary'
=>
null
,
49
'shared_index'
=>
null
,
50
'fieldsets'
=> [],
51
'dependencies'
=> [
52
'test_indexer_with_dependencies'
53
],
54
],
55
]
56
];
__
__()
Definition:
__.php:13