- πΊπΈUnited States jeffschuler Boulder, Colorado
The $entity parameter is the entity your computed field is attached to.
To get the entity type or content type (bundle), try:
$entity->getEntityType();
$entity->bundle();If your entity is a node, get its title like this:
$entity->getTitle();Check out Working with teh Entity API β or the Node class docs.
Automatically closed - issue fixed for 2 weeks with no activity.