public function getLayout(Template
$template, ?Shop
$shop = null
) { $layout =
$this->
buildConfigLayout( $template,
$shop );
$namespace =
$this->
getConfigSnippetNamespace($template);
$namespace->
read();
// Theme configurations contains only one main container on the first level.
$layout[0
] =
$this->
translateContainer($layout[0
],
$template,
$namespace);
return $layout;
} /**
* This function returns all configuration ids, names and default
* values for the provided template
* If a shop is provided, the current values for that shop
* will also be returned.
* If provided, only option in $optionNames will be returned
*
* @param array $optionNames
*
* @return array
*/