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

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Mostra file Open project: sulu/sulu

Public Methods

Method 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

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

Method Details

__construct() public method

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

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

setTitleOnDocument() public method

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 method

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