src/Entity/XiboLayout.php
public function addTag($tag)
    {
        $this->tag = $tag;
        $this->getLogger()->info('Adding tag: ' . $tag . ' to layout ID ' . $this->layoutId);
        $response = $this->doPost('/layout/' . $this->layoutId . '/tag', [
            'tag' => [$tag]
        ]);
        $tags = $this->hydrate($response);
        foreach ($response['tags'] as $item) {
            $tag = new XiboLayout($this->getEntityProvider());
            $tag->hydrate($item);
            $tags->tags[] = $tag;
        }
        return $this;
    }
public function addTag($tag)
    {
        $this->tag = $tag;
        $this->getLogger()->info('Adding tag: ' . $tag . ' to layout ID ' . $this->layoutId);
        $response = $this->doPost('/layout/' . $this->layoutId . '/tag', [
            'tag' => [$tag]
        ]);
        $tags = $this->hydrate($response);
        foreach ($response['tags'] as $item) {
            $tag = new XiboLayout($this->getEntityProvider());
            $tag->hydrate($item);
            $tags->tags[] = $tag;
        }
        return $this;
    }
public function addTag ( $ tag ) { $ this -> tag = $ tag ; $ this -> getLogger ( ) -> info ( 'Adding tag: ' . $ tag . ' to layout ID ' . $ this -> layoutId ) ; $ response = $ this -> doPost ( '/layout/' . $ this -> layoutId . '/tag' , [ 'tag' => [ $ tag ] ] ) ; $ tags = $ this -> hydrate ( $ response ) ; foreach ( $ response [ 'tags' ] as $ item ) { $ tag = new XiboLayout ( $ this -> getEntityProvider ( ) ) ; $ tag -> hydrate ( $ item ) ; $ tags -> tags [ ] = $ tag ; } return $ this ; }
Add tag.
Adds specified tag to the specified layout

@param string $tag name of the tag to add
@return XiboLayout
Add tag . Adds specified tag to the specified layout