I already know how to access properties from header in twig templates.
If I want to get the title of an article and printing it in a page, I can write:
page.header.title
If I want to get strings associated to my custom keys, I can do that like this:
page.header.metadata.author
Doing this, I call the string stored in this yaml frontmatter:
metadata:
author: 'author-person'
How can I store in a php var these contents?
I'm searching through docs since yesterday for hours and hours but I didn't find a specifical solution. I saw that I can recall taxonomy with a method, but I don't get the general approach.