public function addLayout($id, $content, array $attributes = [])
    {
        $key = $this->getLayoutNameWithNamespace($id);
        $this->layouts[$key] = [$id, $content, $attributes];
    }
public function addLayout($id, $content, array $attributes = [])
    {
        $key = $this->getLayoutNameWithNamespace($id);
        $this->layouts[$key] = [$id, $content, $attributes];
    }
public function addLayout ( $ id , $ content , array $ attributes = [ ] ) { $ key = $ this -> getLayoutNameWithNamespace ( $ id ) ; $ this -> layouts [ $ key ] = [ $ id , $ content , $ attributes ] ; }
Add a new layout.

@param string $id         The identifier of the layout. e.g: path
@param string $content    The content of the layout
@param array  $attributes The attributes of the layout.
"layout" attribute has a special meaning
Add a new layout .