Updates due to changes in core.
Changed Flag::getEntityType() to getFlaggableEntityType(), fixing mixtakenly overrode Entity::getEntityType().