Have fixed the issue by changing the function accordingly.
This patch is tested and is working fine on my environment.
sarathkp → created an issue.
I have tested the functionality on my D10 setup and found this patch to be working as expected. The field values are getting populated with the values previously saved. Hence, marking the same as RTBC.
Patch #4 is failing for me in Drupal 10.0.7
Giving the below error:
------ ---------------------------------------------------------------------------------------
Line node_view_permissions.module
------ ---------------------------------------------------------------------------------------
65 Call to an undefined method Drupal\Core\Entity\ContentEntityInterface::isPublished().
------ ---------------------------------------------------------------------------------------[ERROR] Found 1 error
The above issue has been fixed in the new patch attached here.
D10 compatible module for instagram_feeds. Kindly review the same.
Have made the module D10 compatible. Kindly review.