Comments (5)
Hi ;)
There seems to be the \Neos\Neos\Fusion\Helper\NodeHelper::path
function that can be used.
In preparation to neos/neos-development-collection#4208 we should migrate all pre 9.0 ways of accessing member fields on the node
I don't know if all those case must be migrated, but i took the list of node properties from neos/neos-development-collection#4208 (comment) (generated via reflection) and took the ones which most likely could have been used:
q(node).property('_autoCreated'), node.autoCreated => node.classification.tethered
q(node).property('_contextPath'), node.contextPath => Neos.Node.serializedNodeAddress(node)
q(node).property('_depth'), node.depth => Neos.Node.depth(node)
q(node).property('_identifier'), node.identifier => node.nodeAggregateId.value
q(node).property('_label') => node.label
q(node).property('_name'), node.name => node.nodeName.value
q(node).property('_nodeType') => node.nodeType
q(node).property('_parent'), node.parent => q(node).parent().get(0)
q(node).property('_path'), node.path => Neos.Node.path(node)
q(node).property('_hiddenInIndex'), node.hiddenInIndex => node.properties._hiddenInIndex
q(node).property('_dimensions'), node.dimensions => ???
q(node).property('_hidden'), node.hidden => ???
q(node).property('_index'), node.index => ???
q(node).property('_workspace'), node.workspace => ???
q(node).property('_hiddenBeforeDateTime'), node.hiddenBeforeDateTime => -
q(node).property('_hiddenAfterDateTime'), node.hiddenAfterDateTime => -
from rector.
@mhsdesign Can you provide me replacement or at least what you like to warn about in this cases?
from rector.
So this might also be outdated, right?
from rector.
Yes Idk what that is supposed to do 😂
we want to get rid of _* not add it
from rector.
Hmm, but it's actually the current implementation:
https://github.com/neos/neos-development-collection/blob/9cd8c4f790955a4d69e7e4baa59a35d5b434e422/Neos.Neos/NodeTypes/Mixin/Document.yaml#L74-L74
from rector.
Related Issues (20)
- `ContentContext::getCurrentRenderingMode` to `RenderingModeService::findByCurrentUser` HOT 2
- Rector rule to discourage / warn about `path` usage in Fusion HOT 1
- Remove NodeTypeManager from NodeType
- Rename _hiddenBeforeDateTime and _hiddenAfterDateTime in Fusion
- NodeSearchService removed
- Special cases of `node.context.*`
- Renamed/Moved Classes are not detected in php HOT 2
- exchange `Neos.Fusion:RawArray` and `Neos.Fusion:Attributes` prototypes HOT 2
- some signals no longer exist HOT 2
- Migrate `Node::getNodeType` HOT 2
- This package is not simple to install HOT 1
- Wip task migrate `NodeTypeConstraints`
- Refactor node.identifier / q(node).property('_identifier') to node.id() / q(node).id() HOT 1
- Rewrite hiddenInIndex into hiddenInMenu
- List of (integration) Fusion, Yaml etc things that cannot be easily migrated automatically HOT 1
- List of advanced things that cannot be migrated automatically
- Migrate `${node.label}` to `${q(node).label()}` HOT 1
- Solve all todos in `contentrepository-90.php`
- Create rector config for 8.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rector.