20 private $paramInterpreter;
27 $this->paramInterpreter = $paramInterpreter;
39 throw new \InvalidArgumentException(
'Layout argument parameters are expected to be an array.');
42 foreach (
$params as $paramKey => $paramData) {
43 if (!is_array($paramData)) {
44 throw new \InvalidArgumentException(
'Parameter data of layout argument is expected to be an array.');
46 $result[$paramKey] = $this->paramInterpreter->evaluate($paramData);
__construct(InterpreterInterface $paramInterpreter)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]