src/Charcoal/Ui/Layout/LayoutBuilder.php
public function build($options)
    {
        $container = $this->container;
        $objType = isset($options['type']) ? $options['type'] : self::DEFAULT_TYPE;

        $obj = $this->factory->create($objType, [
            'logger' => $container['logger'],
            'view'   => $container['view']
        ]);
        $obj->setData($options);

        return $obj;
    }
public function build($options)
    {
        $container = $this->container;
        $objType = isset($options['type']) ? $options['type'] : self::DEFAULT_TYPE;

        $obj = $this->factory->create($objType, [
            'logger' => $container['logger'],
            'view'   => $container['view']
        ]);
        $obj->setData($options);

        return $obj;
    }
public function build ( $ options ) { $ container = $ this -> container ; $ objType = isset ( $ options [ 'type' ] ) ? $ options [ 'type' ] : self :: DEFAULT_TYPE ; $ obj = $ this -> factory -> create ( $ objType , [ 'logger' => $ container [ 'logger' ] , 'view' => $ container [ 'view' ] ] ) ; $ obj -> setData ( $ options ) ; return $ obj ; }
Build and return a new layout.

@param  array|\ArrayAccess $options The layout build options.
@return LayoutInterface
Build and return a new layout .