Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractConfigOption.php
Go to the documentation of this file.
1 <?php
7 
8 use Symfony\Component\Console\Input\InputOption;
9 
13 abstract class AbstractConfigOption extends InputOption
14 {
20  private $frontendType;
21 
27  private $configPath;
28 
40  public function __construct(
41  $name,
42  $frontendType,
43  $mode,
44  $configPath,
45  $description = '',
46  $defaultValue = null,
47  $shortcut = null
48  ) {
49  $this->frontendType = $frontendType;
50  $this->configPath = $configPath;
51  parent::__construct($name, $shortcut, $mode, $description, $defaultValue);
52  }
53 
59  public function getFrontendType()
60  {
61  return $this->frontendType;
62  }
63 
69  public function getConfigPath()
70  {
71  return $this->configPath;
72  }
73 
80  public function validate($data)
81  {
82  }
83 }
__construct( $name, $frontendType, $mode, $configPath, $description='', $defaultValue=null, $shortcut=null)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition: grid.phtml:15
if(!isset($_GET['name'])) $name
Definition: log.php:14