Matthias\SymfonyConsoleForm\Form\FormUtil::typeAncestryForType PHP Метод

typeAncestryForType() публичный статический Метод

public static typeAncestryForType ( Symfony\Component\Form\ResolvedFormTypeInterface $formType = null, array &$types )
$formType Symfony\Component\Form\ResolvedFormTypeInterface
$types array
    public static function typeAncestryForType(ResolvedFormTypeInterface $formType = null, array &$types)
    {
        if (!$formType instanceof ResolvedFormTypeInterface) {
            return;
        }
        $types[] = get_class($formType->getInnerType());
        self::typeAncestryForType($formType->getParent(), $types);
    }