---
title: "Discussion on \"Remove entity_keys from the Entity using hook_update\" | Hashnode"
description: "Discussion on \"Remove entity_keys from the Entity using hook_update\". If we have a custom entity, we have a property called entity_keys[ https://www.drupal.org/docs/drupal-apis/entity-api/creating-a-content-entity-type-in-drupal-8],\n- entity_keys: How to access the fields. Analog to 'nid' or 'uid'.\n\nif we create a cust..."
url: "https://hashnode.com/posts/remove-entitykeys-in-the-custom-entity-using-hook-update/64589eb38c4f7029005e6989"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Remove entity\_keys from the Entity using hook\_update](https://sreenidrupaldev.hashnode.dev/remove-entitykeys-in-the-custom-entity-using-hook-update?utm_source=hashnode&utm_medium=feed)

If we have a custom entity, we have a property called entity\_keys\[ https://www.drupal.org/docs/drupal-apis/entity-api/creating-a-content-entity-type-in-drupal-8\], - entity\_keys: How to access the fields. Analog to 'nid' or 'uid'. if we create a cust...

May 8, 2023 · 1 min read · sreenidrupaldev.hashnode.dev  
Read the article

-   [#drupal9](https://hashnode.com/tag/drupal9)

## Written by

[sreenu paruchuri](https://hashnode.com/@sreeniDrupaldev)

@sreeniDrupaldev

  
[View profile](https://hashnode.com/@sreeniDrupaldev)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
