ELGG object

How would I get the name of the object that was created, for instance a blog, page etc?

I used $object->getDisplayName() and that gives an error saying that the method is not available.

I also tried:

$objSubtype = $object->getSubtype()

$objSubtype->getDisplayName() and that give an error that the object does not exist.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking