Hello, I am trying to get the Content Type ID of a linked entry. I am using PHP SDK, but am having trouble aquiring it. Below is snippet of what I have and what I am trying to do.
$query = new Contentful\Delivery\Query();
$entry = $client->getEntries($query);
For the “all-users” entry, I have a linked field (“homePageFeatured") that references other entries. For each of those entries, I need the "content type ID”.
If I use “$entry->homePageFeatured->title”, I indeed get the entry title which is great, however when I do “$entry->homePageFeatured->contentTypeId ”, I am expecting to get back “article” which is the content type of the referenced entry.
Can you be more specific on the syntax to use? Again, I am using PHP.