Symfony\Component\Form\AbstractType::getParent PHP Méthode

getParent() public méthode

Returns the name of the parent type.
public getParent ( array $options ) : string | null
$options array
Résultat string | null The name of the parent type if any otherwise null
    public function getParent(array $options)
    {
        return 'form';
    }

Same methods

AbstractType::getParent ( )

Usage Example

 /**
  * {@inheritdoc}
  */
 public function getParent()
 {
     if ('form' === parent::getParent()) {
         // BC for SF < 2.8
         return 'text';
     }
     return 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType';
 }
All Usage Examples Of Symfony\Component\Form\AbstractType::getParent