public function listForms()
    {
        $this->assertSavePathIsValid();

        $forms = [];
        $directoryIterator = new \DirectoryIterator($this->savePath);

        foreach ($directoryIterator as $fileObject) {
            if (!$fileObject->isFile()) {
                continue;
            }
            $fileInfo = pathinfo($fileObject->getFilename());
            if (strtolower($fileInfo['extension']) !== 'yaml') {
                continue;
            }
            $persistenceIdentifier = $fileInfo['filename'];
            $form = $this->load($persistenceIdentifier);
            $forms[] = array(
                'identifier' => $form['identifier'],
                'name' => isset($form['label']) ? $form['label'] : $form['identifier'],
                'persistenceIdentifier' => $persistenceIdentifier
            );
        }
        return $forms;
    }
public function listForms()
    {
        $this->assertSavePathIsValid();

        $forms = [];
        $directoryIterator = new \DirectoryIterator($this->savePath);

        foreach ($directoryIterator as $fileObject) {
            if (!$fileObject->isFile()) {
                continue;
            }
            $fileInfo = pathinfo($fileObject->getFilename());
            if (strtolower($fileInfo['extension']) !== 'yaml') {
                continue;
            }
            $persistenceIdentifier = $fileInfo['filename'];
            $form = $this->load($persistenceIdentifier);
            $forms[] = array(
                'identifier' => $form['identifier'],
                'name' => isset($form['label']) ? $form['label'] : $form['identifier'],
                'persistenceIdentifier' => $persistenceIdentifier
            );
        }
        return $forms;
    }
public function listForms ( ) { $ this -> assertSavePathIsValid ( ) ; $ forms = [ ] ; $ directoryIterator = new \ DirectoryIterator ( $ this -> savePath ) ; foreach ( $ directoryIterator as $ fileObject ) { if ( ! $ fileObject -> isFile ( ) ) { continue ; } $ fileInfo = pathinfo ( $ fileObject -> getFilename ( ) ) ; if ( strtolower ( $ fileInfo [ 'extension' ] ) !== 'yaml' ) { continue ; } $ persistenceIdentifier = $ fileInfo [ 'filename' ] ; $ form = $ this -> load ( $ persistenceIdentifier ) ; $ forms [ ] = array ( 'identifier' => $ form [ 'identifier' ] , 'name' => isset ( $ form [ 'label' ] ) ? $ form [ 'label' ] : $ form [ 'identifier' ] , 'persistenceIdentifier' => $ persistenceIdentifier ) ; } return $ forms ; }
List all form definitions which can be loaded through this form persistence
manager.

Returns an associative array with each item containing the keys 'name' (the human-readable name of the form)
and 'persistenceIdentifier' (the unique identifier for the Form Persistence Manager e.g. the path to the saved form definition).

@return array in the format array(array('name' => 'Form 01', 'persistenceIdentifier' => 'path1'), array( .... ))
List all form definitions which can be loaded through this form persistence manager .