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
module-indexer
Console
Command
IndexerShowModeCommand.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Indexer\Console\Command
;
7
8
use Symfony\Component\Console\Input\InputInterface;
9
use Symfony\Component\Console\Output\OutputInterface;
10
14
class
IndexerShowModeCommand
extends
AbstractIndexerManageCommand
15
{
19
protected
function
configure
()
20
{
21
$this->setName(
'indexer:show-mode'
)
22
->setDescription(
'Shows Index Mode'
)
23
->setDefinition($this->
getInputList
());
24
25
parent::configure();
26
}
27
31
protected
function
execute
(InputInterface $input, OutputInterface
$output
)
32
{
33
$indexers = $this->
getIndexers
($input);
34
foreach
($indexers as
$indexer
) {
35
$status
=
$indexer
->isScheduled() ?
'Update by Schedule'
:
'Update on Save'
;
36
$output
->writeln(sprintf(
'%-50s '
,
$indexer
->getTitle() .
':'
) .
$status
);
37
}
38
}
39
}
Magento\Indexer\Console\Command\IndexerShowModeCommand
Definition:
IndexerShowModeCommand.php:14
Magento\Indexer\Console\Command\IndexerShowModeCommand\execute
execute(InputInterface $input, OutputInterface $output)
Definition:
IndexerShowModeCommand.php:31
Magento\Indexer\Console\Command\AbstractIndexerManageCommand\getIndexers
getIndexers(InputInterface $input)
Definition:
AbstractIndexerManageCommand.php:29
Magento\Indexer\Console\Command\AbstractIndexerManageCommand
Definition:
AbstractIndexerManageCommand.php:15
Magento\Indexer\Console\Command\IndexerShowModeCommand\configure
configure()
Definition:
IndexerShowModeCommand.php:19
$output
$output
Definition:
classmap_generator.php:100
$status
$status
Definition:
order_status.php:8
Magento\Indexer\Console\Command\AbstractIndexerManageCommand\getInputList
getInputList()
Definition:
AbstractIndexerManageCommand.php:59
Magento\Indexer\Console\Command
Definition:
AbstractIndexerCommand.php:6
$indexer
$indexer
Definition:
product_different_store_prices.php:21