PHP Class Sulu\Bundle\ContentBundle\Markup\LinkTag

Inheritance: implements Sulu\Bundle\MarkupBundle\Tag\TagInterface
Datei anzeigen Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Bundle\ContentBundle\Markup\Link\LinkProviderPoolInterface $linkProviderPool )
parseAll ( array $attributesByTag, $locale )
validateAll ( array $attributesByTag, $locale )

Private Methods

Method Description
getContent ( array $attributes ) : string Returns content or title of given attributes.
getValue ( array $attributes, string $name, mixed $default = null ) : mixed Returns attribute identified by name or default if not exists.
preload ( array $attributesByTag, string $locale, boolean $published = true ) : LinkItem[] Return items for given attributes.

Method Details

__construct() public method

public __construct ( Sulu\Bundle\ContentBundle\Markup\Link\LinkProviderPoolInterface $linkProviderPool )
$linkProviderPool Sulu\Bundle\ContentBundle\Markup\Link\LinkProviderPoolInterface

parseAll() public method

public parseAll ( array $attributesByTag, $locale )
$attributesByTag array

validateAll() public method

public validateAll ( array $attributesByTag, $locale )
$attributesByTag array