protected static function extractChoiceLoader($form)
    {
        $form = static::getForm($form);
        $choiceLoader = $form->getAttribute('choice_loader', $form->getOption('choice_loader'));

        return $choiceLoader;
    }
protected static function extractChoiceLoader($form)
    {
        $form = static::getForm($form);
        $choiceLoader = $form->getAttribute('choice_loader', $form->getOption('choice_loader'));

        return $choiceLoader;
    }
protected static function extractChoiceLoader ( $ form ) { $ form = static :: getForm ( $ form ) ; $ choiceLoader = $ form -> getAttribute ( 'choice_loader' , $ form -> getOption ( 'choice_loader' ) ) ; return $ choiceLoader ; }
Extracts the ajax choice loader.

@param FormBuilderInterface|FormInterface $form

@return AjaxChoiceLoaderInterface

@throws InvalidArgumentException When the choice list is not an instance of AjaxChoiceListInterface
Extracts the ajax choice loader .