Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ActionFactory.php
Go to the documentation of this file.
1 <?php
8 
10 {
14  protected $objectManager;
15 
20  {
21  $this->objectManager = $objectManager;
22  }
23 
31  public function get($className)
32  {
33  $action = $this->objectManager->get($className);
34  if (!$action instanceof ActionInterface) {
35  throw new \InvalidArgumentException(
36  $className . ' doesn\'t implement \Magento\Framework\Mview\ActionInterface'
37  );
38  }
39 
40  return $action;
41  }
42 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31