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

Warning: Undefined array key "name" #169

Open
laryn opened this issue Jan 29, 2024 · 0 comments
Open

Warning: Undefined array key "name" #169

laryn opened this issue Jan 29, 2024 · 0 comments

Comments

@laryn
Copy link
Member

laryn commented Jan 29, 2024

I'm working on a port of a module from Drupal 7 and see this:

Warning: Undefined array key "name" in EntityMetadataWrapper->__toString() (line 164 of /var/www/html/modules/contrib/entity_plus/includes/entity_plus.wrapper.inc).

Maybe we just need to change the line from

return isset($this->info) ? 'Property ' . $this->info['name'] : $this->type;

to

return isset($this->info['name']) ? 'Property ' . $this->info['name'] : $this->type;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant