/**
* This function returns the nested configuration layout
* and translate the element and container snippets.
* If a shop instance passed, the function selects additionally the
* element values of the passed shop.
*
* @return array
*/
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;
}