private function getRenderer(array $options)
    {
        if ($options['text']) {
            if ($options['badge']) {
                return function (TagInterface $tag) {
                    return sprintf(
                        '<span class="label label-%s"><i class="fa fa-%s"></i> %s</span>',
                        $tag->getTheme(), $tag->getIcon(), $tag->getName()
                    );
                };
            } else {
                return function (TagInterface $tag) {
                    return sprintf(
                        '<span class="text-%s"><i class="fa fa-%s"></i> %s</span>',
                        $tag->getTheme(), $tag->getIcon(), $tag->getName()
                    );
                };
            }
        } else {
            if ($options['badge']) {
                return function (TagInterface $tag) {
                    return sprintf(
                        '<span class="label label-%s" title="%s"><i class="fa fa-%s"></i></span>',
                        $tag->getTheme(), $tag->getName(), $tag->getIcon()
                    );
                };
            } else {
                return function (TagInterface $tag) {
                    return sprintf(
                        '<i class="text-%s fa fa-%s" title="%s"></i>',
                        $tag->getTheme(), $tag->getIcon(), $tag->getName()
                    );
                };
            }
        }
    }
private function getRenderer(array $options)
    {
        if ($options['text']) {
            if ($options['badge']) {
                return function (TagInterface $tag) {
                    return sprintf(
                        '<span class="label label-%s"><i class="fa fa-%s"></i> %s</span>',
                        $tag->getTheme(), $tag->getIcon(), $tag->getName()
                    );
                };
            } else {
                return function (TagInterface $tag) {
                    return sprintf(
                        '<span class="text-%s"><i class="fa fa-%s"></i> %s</span>',
                        $tag->getTheme(), $tag->getIcon(), $tag->getName()
                    );
                };
            }
        } else {
            if ($options['badge']) {
                return function (TagInterface $tag) {
                    return sprintf(
                        '<span class="label label-%s" title="%s"><i class="fa fa-%s"></i></span>',
                        $tag->getTheme(), $tag->getName(), $tag->getIcon()
                    );
                };
            } else {
                return function (TagInterface $tag) {
                    return sprintf(
                        '<i class="text-%s fa fa-%s" title="%s"></i>',
                        $tag->getTheme(), $tag->getIcon(), $tag->getName()
                    );
                };
            }
        }
    }
private function getRenderer ( array $ options ) { if ( $ options [ 'text' ] ) { if ( $ options [ 'badge' ] ) { return function ( TagInterface $ tag ) { return sprintf ( '<span class="label label-%s"><i class="fa fa-%s"></i> %s</span>' , $ tag -> getTheme ( ) , $ tag -> getIcon ( ) , $ tag -> getName ( ) ) ; } ; } else { return function ( TagInterface $ tag ) { return sprintf ( '<span class="text-%s"><i class="fa fa-%s"></i> %s</span>' , $ tag -> getTheme ( ) , $ tag -> getIcon ( ) , $ tag -> getName ( ) ) ; } ; } } else { if ( $ options [ 'badge' ] ) { return function ( TagInterface $ tag ) { return sprintf ( '<span class="label label-%s" title="%s"><i class="fa fa-%s"></i></span>' , $ tag -> getTheme ( ) , $ tag -> getName ( ) , $ tag -> getIcon ( ) ) ; } ; } else { return function ( TagInterface $ tag ) { return sprintf ( '<i class="text-%s fa fa-%s" title="%s"></i>' , $ tag -> getTheme ( ) , $ tag -> getIcon ( ) , $ tag -> getName ( ) ) ; } ; } } }
Returns the renderer.

@param array $options

@return \Closure
Returns the renderer .