Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access tag value #18

Closed
tokomeno opened this issue Apr 15, 2020 · 2 comments
Closed

access tag value #18

tokomeno opened this issue Apr 15, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@tokomeno
Copy link

tokomeno commented Apr 15, 2020

I need to access meta tag value but when I get a tag and then trying to get value property is private, is there any way to do that?

My current code is:
Meta::getTag("title")->title

@butschster
Copy link
Owner

Hi! Try this

dd(Meta::getTitle()->getAttributes());

@butschster butschster added the help wanted Extra attention is needed label Apr 15, 2020
@olimortimer
Copy link

Has this changed, as when I use your example @butschster it gives me the following error;

Call to undefined method Butschster\Head\MetaTags\Entities\Title::getAttributes()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants