/**
  * @param AbstractPopup $popup
  * @return array
  */
 public function getAvailableRules(AbstractPopup $popup)
 {
     if (!is_null($popup->getAvailableRules())) {
         return $popup->getAvailableRules();
     } else {
         return array('Kunstmaan\\LeadGenerationBundle\\Entity\\Rule\\AfterXSecondsRule', 'Kunstmaan\\LeadGenerationBundle\\Entity\\Rule\\AfterXScrollPercentRule', 'Kunstmaan\\LeadGenerationBundle\\Entity\\Rule\\MaxXTimesRule', 'Kunstmaan\\LeadGenerationBundle\\Entity\\Rule\\RecurringEveryXTimeRule', 'Kunstmaan\\LeadGenerationBundle\\Entity\\Rule\\UrlBlacklistRule', 'Kunstmaan\\LeadGenerationBundle\\Entity\\Rule\\UrlWhitelistRule');
     }
 }
 /**
  * @param AbstractPopup $popup
  * @return \Symfony\Component\Form\Form
  */
 protected function createSubscriptionForm(AbstractPopup $popup)
 {
     $form = $this->createForm($this->getSubscriptionFormType(), null, array('method' => 'POST', 'action' => $this->generateUrl('popup_newsletter_subscribe', array('popup' => $popup->getId()))));
     $form->add('submit', 'submit', array('attr' => array('class' => $popup->getHtmlId() . '--submit')));
     return $form;
 }