Neos.ContentRepository/Classes/Domain/Model/NodeType.php
public function getDefaultValuesForProperties()
    {
        $this->initialize();
        if (!isset($this->fullConfiguration['properties'])) {
            return [];
        }

        $defaultValues = [];
        foreach ($this->fullConfiguration['properties'] as $propertyName => $propertyConfiguration) {
            if (isset($propertyConfiguration['defaultValue'])) {
                $type = isset($propertyConfiguration['type']) ? $propertyConfiguration['type'] : '';
                switch ($type) {
                    case 'DateTime':
                        $defaultValues[$propertyName] = new \DateTime($propertyConfiguration['defaultValue']);
                    break;
                    default:
                        $defaultValues[$propertyName] = $propertyConfiguration['defaultValue'];
                }
            }
        }

        return $defaultValues;
    }
public function getDefaultValuesForProperties()
    {
        $this->initialize();
        if (!isset($this->fullConfiguration['properties'])) {
            return [];
        }

        $defaultValues = [];
        foreach ($this->fullConfiguration['properties'] as $propertyName => $propertyConfiguration) {
            if (isset($propertyConfiguration['defaultValue'])) {
                $type = isset($propertyConfiguration['type']) ? $propertyConfiguration['type'] : '';
                switch ($type) {
                    case 'DateTime':
                        $defaultValues[$propertyName] = new \DateTime($propertyConfiguration['defaultValue']);
                    break;
                    default:
                        $defaultValues[$propertyName] = $propertyConfiguration['defaultValue'];
                }
            }
        }

        return $defaultValues;
    }
public function getDefaultValuesForProperties ( ) { $ this -> initialize ( ) ; if ( ! isset ( $ this -> fullConfiguration [ 'properties' ] ) ) { return [ ] ; } $ defaultValues = [ ] ; foreach ( $ this -> fullConfiguration [ 'properties' ] as $ propertyName => $ propertyConfiguration ) { if ( isset ( $ propertyConfiguration [ 'defaultValue' ] ) ) { $ type = isset ( $ propertyConfiguration [ 'type' ] ) ? $ propertyConfiguration [ 'type' ] : '' ; switch ( $ type ) { case 'DateTime' : $ defaultValues [ $ propertyName ] = new \ DateTime ( $ propertyConfiguration [ 'defaultValue' ] ) ; break ; default : $ defaultValues [ $ propertyName ] = $ propertyConfiguration [ 'defaultValue' ] ; } } } return $ defaultValues ; }
Return an array with the defined default values for each property, if any.

The default value is configured for each property under the "default" key.

@return array
@api
Return an array with the defined default values for each property if any .