Package fr.adrienbrault.idea.symfony2plugin.form.dict

Examples of fr.adrienbrault.idea.symfony2plugin.form.dict.FormOption


            // methodReference.getSignature().equals("#M#C\\Symfony\\Component\\OptionsResolver\\OptionsResolverInterface.setDefaults")
            if(PhpElementsUtil.isEqualMethodReferenceName(methodReference, "setDefaults")) {
                PsiElement[] parameters = methodReference.getParameters();
                if(parameters.length > 0 && parameters[0] instanceof ArrayCreationExpression) {
                    for(String key: PhpElementsUtil.getArrayCreationKeys((ArrayCreationExpression) parameters[0])) {
                        options.put(key, new FormOption(key, formClass));
                    }
                }

            }
View Full Code Here

TOP

Related Classes of fr.adrienbrault.idea.symfony2plugin.form.dict.FormOption

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.