Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ListAction.php
Go to the documentation of this file.
1 <?php
7 
13 
15 {
19  private $pageFactory;
20 
26  public function __construct(
27  Context $context,
29  PageFactory $pageFactory
30  ) {
31  parent::__construct($context, $customerSession);
32  $this->pageFactory = $pageFactory;
33  }
34 
41  public function execute()
42  {
43  $resultPage = $this->pageFactory->create();
44  $resultPage->getConfig()->getTitle()->set(__('Stored Payment Methods'));
45 
46  return $resultPage;
47  }
48 }
__()
Definition: __.php:13
__construct(Context $context, Session $customerSession, PageFactory $pageFactory)
Definition: ListAction.php:26