/**
  * @param string|\Symfony\Component\Form\FormTypeInterface $type
  * @param null                                             $data
  * @param array                                            $options
  * @param string|null                                      $editionRole
  * @param StatusInterface|null                             $status
  *
  * @return \Symfony\Component\Form\Form
  */
 public function createForm($type, $data = null, array $options = array(), $editionRole = null, StatusInterface $status = null)
 {
     if (null !== $status && $status->isBlockedEdition()) {
         $options['disabled'] = true;
     }
     return parent::createForm($type, $data, $options, $editionRole);
 }
 /**
  * @param string|\Symfony\Component\Form\FormTypeInterface $type
  * @param null                                             $data
  * @param array                                            $options
  * @param string|null                                      $editionRole
  * @param FolderInterface|null                             $folder
  *
  * @return \Symfony\Component\Form\Form
  */
 public function createForm($type, $data = null, array $options = array(), $editionRole = null, $folder = null)
 {
     if (!isset($options['disabled']) && !is_null($editionRole)) {
         $options['disabled'] = !$this->isGranted($editionRole, $folder);
     }
     return parent::createForm($type, $data, $options);
 }