PHP Class Sulu\Component\Content\Document\Subscriber\TitleSubscriber

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Méthode Description
__construct ( Sulu\Component\DocumentManager\PropertyEncoder $propertyEncoder )
getSubscribedEvents ( )
setTitleOnDocument ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) Sets the title on the document from the node.
setTitleOnNode ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) Sets the title on the node from the value in the document.

Private Methods

Méthode Description
supports ( $document ) : boolean Returns true if the given document is supported by this subscriber.

Method Details

__construct() public méthode

public __construct ( Sulu\Component\DocumentManager\PropertyEncoder $propertyEncoder )
$propertyEncoder Sulu\Component\DocumentManager\PropertyEncoder

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

setTitleOnDocument() public méthode

Sets the title on the document from the node.
public setTitleOnDocument ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event )
$event Sulu\Component\DocumentManager\Event\AbstractMappingEvent

setTitleOnNode() public méthode

Sets the title on the node from the value in the document.
public setTitleOnNode ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event )
$event Sulu\Component\DocumentManager\Event\AbstractMappingEvent