public function createTagPosition($category, $type, $lineno = -1, $name = null, $position = null)
    {
        $tag = $this->formatTagPosition($category, $type, $position);

        if (\in_array($tag, $this->tagPositions, true)) {
            throw new AlreadyExistTagPositionException($category, $type, $position, $lineno, $name);
        }

        $this->tagPositions[] = $tag;

        return $this->getTagPosition($tag, $category);
    }
public function createTagPosition($category, $type, $lineno = -1, $name = null, $position = null)
    {
        $tag = $this->formatTagPosition($category, $type, $position);

        if (\in_array($tag, $this->tagPositions, true)) {
            throw new AlreadyExistTagPositionException($category, $type, $position, $lineno, $name);
        }

        $this->tagPositions[] = $tag;

        return $this->getTagPosition($tag, $category);
    }
public function createTagPosition ( $ category , $ type , $ lineno = - 1 , $ name = null , $ position = null ) { $ tag = $ this -> formatTagPosition ( $ category , $ type , $ position ) ; if ( \ in_array ( $ tag , $ this -> tagPositions , true ) ) { throw new AlreadyExistTagPositionException ( $ category , $ type , $ position , $ lineno , $ name ) ; } $ this -> tagPositions [ ] = $ tag ; return $ this -> getTagPosition ( $ tag , $ category ) ; }
Create the tag position to included in the twig template.

@param string      $category The twig asset category
@param string      $type     The asset type
@param int         $lineno   The lineno
@param null|string $name     The template logical name
@param null|string $position The name of tag position in the twig template

@throws AlreadyExistTagPositionException When tag position is already defined in template

@return string
Create the tag position to included in the twig template .