src/Kunstmaan/LeadGenerationBundle/Twig/PopupTwigExtension.php
public function getAvailableRuleTypes(AbstractPopup $popup)
    {
        $rulesTypes = $this->popupManager->getAvailableRules($popup);

        $rules = array();
        foreach ($rulesTypes as $ruleType) {
            $object = new $ruleType();
            $rules[$object->getClassname()] = $object->getFullClassname();
        }

        return $rules;
    }
public function getAvailableRuleTypes(AbstractPopup $popup)
    {
        $rulesTypes = $this->popupManager->getAvailableRules($popup);

        $rules = array();
        foreach ($rulesTypes as $ruleType) {
            $object = new $ruleType();
            $rules[$object->getClassname()] = $object->getFullClassname();
        }

        return $rules;
    }
public function getAvailableRuleTypes ( AbstractPopup $ popup ) { $ rulesTypes = $ this -> popupManager -> getAvailableRules ( $ popup ) ; $ rules = array ( ) ; foreach ( $ rulesTypes as $ ruleType ) { $ object = new $ ruleType ( ) ; $ rules [ $ object -> getClassname ( ) ] = $ object -> getFullClassname ( ) ; } return $ rules ; }
Get the available popup types for a specific popup.

@param AbstractPopup $popup

@return array
Get the available popup types for a specific popup .