As a module developer, I'm using data dot-selectors to maintain information about fields.
It would be useful to use a Typed Data service to parse these selectors, so that I don't have to re-implement my own.
In my scenario, I don't have a specific entity or data object - only the selector.
I need to parse the selector to fetch metadata about the corresponding field(s).
For example, assume I start with this selector as my only data point:
user.field_organization.field_title
A useful service could provide me the following information, for example to create a plugin dependency tree:
* Field definitions for all referenced fields
* Corresponding entity definitions
Right now I have to explode() the selector and fumble my way through the parts - similar to what happens in DataFetcher::fetchDataByPropertyPath and PlaceholderResolver::parseMainPlaceholderPart
If this is something I can do already without reinventing the wheel, please let me know! Thanks
Comments
Comment #2
aaronbaumanComment #3
aaronbaumanDerp, just had to scroll down a bit more to
fetchDefinitionByPropertyPathComment #4
tr commentedIf you have any suggestions for how the API could be more useful then please open an issue and let me know!