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

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