src/Sulu/Bundle/PageBundle/Resources/phpcr-migrations/Version201511240843.php
private function findDateProperties(StructureMetadata $structureMetadata, array &$properties)
    {
        $structureName = $structureMetadata->getName();
        foreach ($structureMetadata->getProperties() as $property) {
            if ('date' === $property->getType()) {
                $properties[$structureName][] = ['property' => $property];
            } elseif ($property instanceof BlockMetadata) {
                $this->findDateBlockProperties($property, $structureName, $properties);
            }
        }
    }
private function findDateProperties(StructureMetadata $structureMetadata, array &$properties)
    {
        $structureName = $structureMetadata->getName();
        foreach ($structureMetadata->getProperties() as $property) {
            if ('date' === $property->getType()) {
                $properties[$structureName][] = ['property' => $property];
            } elseif ($property instanceof BlockMetadata) {
                $this->findDateBlockProperties($property, $structureName, $properties);
            }
        }
    }
private function findDateProperties ( StructureMetadata $ structureMetadata , array & $ properties ) { $ structureName = $ structureMetadata -> getName ( ) ; foreach ( $ structureMetadata -> getProperties ( ) as $ property ) { if ( 'date' === $ property -> getType ( ) ) { $ properties [ $ structureName ] [ ] = [ 'property' => $ property ] ; } elseif ( $ property instanceof BlockMetadata ) { $ this -> findDateBlockProperties ( $ property , $ structureName , $ properties ) ; } } }
Returns all properties which are a date field.

@param StructureMetadata $structureMetadata The metadata in which the date fields are searched
@param array $properties The properties which are date fields are added to this array
Returns all properties which are a date field .