private function treatFieldsDefaultAccess(ArrayNodeDefinition $node): void
    {
        $node->validate()
            ->ifTrue(function ($v) {
                return \array_key_exists('fieldsDefaultAccess', $v) && null !== $v['fieldsDefaultAccess'];
            })
            ->then(function ($v) {
                foreach ($v['fields'] as &$field) {
                    if (\array_key_exists('access', $field) && null !== $field['access']) {
                        continue;
                    }

                    $field['access'] = $v['fieldsDefaultAccess'];
                }

                return $v;
            })
        ->end();
    }
private function treatFieldsDefaultAccess(ArrayNodeDefinition $node): void
    {
        $node->validate()
            ->ifTrue(function ($v) {
                return \array_key_exists('fieldsDefaultAccess', $v) && null !== $v['fieldsDefaultAccess'];
            })
            ->then(function ($v) {
                foreach ($v['fields'] as &$field) {
                    if (\array_key_exists('access', $field) && null !== $field['access']) {
                        continue;
                    }

                    $field['access'] = $v['fieldsDefaultAccess'];
                }

                return $v;
            })
        ->end();
    }
private function treatFieldsDefaultAccess ( ArrayNodeDefinition $ node ) : void { $ node -> validate ( ) -> ifTrue ( function ( $ v ) { return \ array_key_exists ( 'fieldsDefaultAccess' , $ v ) && null !== $ v [ 'fieldsDefaultAccess' ] ; } ) -> then ( function ( $ v ) { foreach ( $ v [ 'fields' ] as & $ field ) { if ( \ array_key_exists ( 'access' , $ field ) && null !== $ field [ 'access' ] ) { continue ; } $ field [ 'access' ] = $ v [ 'fieldsDefaultAccess' ] ; } return $ v ; } ) -> end ( ) ; }
set empty fields.access with fieldsDefaultAccess values if is set?

@param ArrayNodeDefinition $node
set empty fields . access with fieldsDefaultAccess values if is set?