Neos\Neos\Service\Mapping\NodePropertyConverterService::getDefaultValueForProperty PHP Method

getDefaultValueForProperty() protected method

Tries to find a default value for the given property trying: 1) The specific property configuration for the given NodeType 2) The generic configuration for the property type in setings.
protected getDefaultValueForProperty ( NodeType $nodeType, string $propertyName ) : mixed
$nodeType Neos\ContentRepository\Domain\Model\NodeType
$propertyName string
return mixed
    protected function getDefaultValueForProperty(NodeType $nodeType, $propertyName)
    {
        $defaultValues = $nodeType->getDefaultValuesForProperties();
        if (!isset($defaultValues[$propertyName])) {
            return null;
        }
        return $defaultValues[$propertyName];
    }