src/Zicht/Bundle/PageBundle/Entity/ContentItem.php
public function getShortType($infix = '-')
    {
        $shortType = Str::infix(lcfirst(Str::classname(Str::rstrip($this->getType(), 'ContentItem'))), $infix);

        if ($template = $this->getTemplateName()) {
            $shortType .= $infix . $template;
        }

        return $shortType;
    }
public function getShortType($infix = '-')
    {
        $shortType = Str::infix(lcfirst(Str::classname(Str::rstrip($this->getType(), 'ContentItem'))), $infix);

        if ($template = $this->getTemplateName()) {
            $shortType .= $infix . $template;
        }

        return $shortType;
    }
public function getShortType ( $ infix = '-' ) { $ shortType = Str :: infix ( lcfirst ( Str :: classname ( Str :: rstrip ( $ this -> getType ( ) , 'ContentItem' ) ) ) , $ infix ) ; if ( $ template = $ this -> getTemplateName ( ) ) { $ shortType .= $ infix . $ template ; } return $ shortType ; }
Returns a (dash notated) short type that can be used in databases, css classes, etc.

@param string $infix
@return string
Returns a ( dash notated ) short type that can be used in databases css classes etc .