Extension

XSLT filters that can be used inside a template.

package

Default

Methods

Markdown filter.

markdown(string $text) : string
static

Example usage inside template would be:

<div class="long_description">
    <xsl:value-of
        select="php:function('phpDocumentor\Plugin\Core\Xslt\Extension::markdown',
            string(docblock/long-description))"
        disable-output-escaping="yes" />
</div>

Arguments

$text

string

Response

string

Returns a relative URL from the webroot if the given FQSEN exists in the project.

path(string $fqsen) : boolean|string
static

Example usage inside template would be (where @link is an attribute called link):

<xsl:value-of select="php:function('phpDocumentor\Plugin\Core\Xslt\Extension::path', string(@link))" />

Arguments

$fqsen

string

Response

boolean|string

Properties

descriptorBuilder

descriptorBuilder : \phpDocumentor\Descriptor\ProjectDescriptorBuilder
static

routers

routers : \phpDocumentor\Transformer\Router\Queue
static