PHP Interface Yosymfony\Spress\Core\ContentManager\Converter\ConverterInterface

Converters extend Spress to support new type of content.
Author: Victor Puertas ([email protected])
Afficher le fichier Open project: spress/spress Interface Usage Examples

Méthodes publiques

Méthode Description
convert ( string $input ) : string Convert the input data.
getOutExtension ( string $extension ) : string The extension of filename result (without dot). E.g: html.
getPriority ( ) : integer Get the priority of converter.
matches ( string $extension ) : boolean If file's extension is support by converter.

Method Details

convert() public méthode

Convert the input data.
public convert ( string $input ) : string
$input string The raw content without Front-matter
Résultat string

getOutExtension() public méthode

The extension of filename result (without dot). E.g: html.
public getOutExtension ( string $extension ) : string
$extension string File's extension
Résultat string

getPriority() public méthode

Get the priority of converter.
public getPriority ( ) : integer
Résultat integer Value between 0 to 10. Greater means higher priority

matches() public méthode

If file's extension is support by converter.
public matches ( string $extension ) : boolean
$extension string Extension without dot
Résultat boolean