public function placeToSections(array $componentsBySections)
    {
        foreach ($componentsBySections as $section => $children) {
            if (!is_array($children)) {
                throw new InvalidArgumentException(
                    'Wrong argument format for Layout::placeToSections. Array of components for each section expected.'
                );
            }
            $this->section($section)->addChildren($children);
        }
        return $this;
    }
public function placeToSections(array $componentsBySections)
    {
        foreach ($componentsBySections as $section => $children) {
            if (!is_array($children)) {
                throw new InvalidArgumentException(
                    'Wrong argument format for Layout::placeToSections. Array of components for each section expected.'
                );
            }
            $this->section($section)->addChildren($children);
        }
        return $this;
    }
public function placeToSections ( array $ componentsBySections ) { foreach ( $ componentsBySections as $ section => $ children ) { if ( ! is_array ( $ children ) ) { throw new InvalidArgumentException ( 'Wrong argument format for Layout::placeToSections. Array of components for each section expected.' ) ; } $ this -> section ( $ section ) -> addChildren ( $ children ) ; } return $ this ; }
Places components to layout sections.

@param array <string, ComponentInterface[]> $componentsBySections
@return $this
Places components to layout sections .