Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Use hook_entity_base_field_info_alter instead of new entity class #1

@tedbow

Description

@tedbow

@ainarend saw you question on irc

you don't need use new entity class you can just use hook_entity_base_field_info_alter to add the status field. It looks like you just add getter/settings methods to the entity class. You don't need specific getter/setter methods you can just access the status field like any other base field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions