category; } /** * Overrides Drupal\Core\Entity\Entity::entityInfo(). */ public function entityInfo() { // The user contact form is not a category/bundle currently, so it is not // fieldable. Prevent EntityFormController from calling into Field Attach // functions, since those will throw errors without a bundle name. $info = entity_get_info($this->entityType); if (isset($this->recipient)) { $info['fieldable'] = FALSE; } return $info; } }