Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
LandingUpdater Class Reference
Inheritance diagram for LandingUpdater:

Public Member Functions

 __construct (\Magento\Framework\App\ProductMetadata $productMetadata)
 
 indexAction ()
 

Protected Attributes

 $productMetadata
 

Detailed Description

Controller for Updater Landing page

Definition at line 14 of file LandingUpdater.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\App\ProductMetadata  $productMetadata)
Parameters
\Magento\Framework\App\ProductMetadata$productMetadata

Definition at line 24 of file LandingUpdater.php.

25  {
26  $this->productMetadata = $productMetadata;
27  }

Member Function Documentation

◆ indexAction()

indexAction ( )
Returns
array|ViewModel

Definition at line 32 of file LandingUpdater.php.

33  {
34  $welcomeMsg = "Welcome to Magento Module Manager.<br>"
35  . "Click 'Agree and Update Magento' or read ";
36  $docRef = "http://devdocs.magento.com/guides/v1.0/install-gde/install/install-web.html";
37  $agreeButtonText = "Agree and Update Magento";
38  $view = new ViewModel;
39  $view->setTerminal(true);
40  $view->setTemplate('/magento/setup/landing.phtml');
41  $view->setVariable('version', $this->productMetadata->getVersion());
42  $view->setVariable('welcomeMsg', $welcomeMsg);
43  $view->setVariable('docRef', $docRef);
44  $view->setVariable('agreeButtonText', $agreeButtonText);
45  return $view;
46  }

Field Documentation

◆ $productMetadata

$productMetadata
protected

Definition at line 19 of file LandingUpdater.php.


The documentation for this class was generated from the following file: