PHP Class Elcodi\Admin\PageBundle\Form\EventListener\PermanentPageSubscriber

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Show file Open project: elcodi/bamboo

Public Methods

Method Description
getSubscribedEvents ( ) : array Gets the events which the class is subscribed to.
preSetData ( Symfony\Component\Form\FormEvent $event ) This method is called during the Form::setData() call and removes the options that are not allowed for persistent pages.

Method Details

getSubscribedEvents() public static method

Gets the events which the class is subscribed to.
public static getSubscribedEvents ( ) : array
return array The array of events and methods to call.

preSetData() public method

This method is called during the Form::setData() call and removes the options that are not allowed for persistent pages.
public preSetData ( Symfony\Component\Form\FormEvent $event )
$event Symfony\Component\Form\FormEvent The form event launched.