Closed (outdated)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Flag core
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2012 at 11:00 UTC
Updated:
18 Aug 2025 at 10:09 UTC
Jump to comment: Most recent
Comments
Comment #1
joachim commentedWhat are the bugs? Are they things we could fix?
Comment #2
alexweber commentedWhereas flag can leverage Entity API I don't think it requires it per-se, unless maybe some API calls are being made by mistake. What are the errors?
Comment #3
joachim commentedClosing.
I don't want to add a dependency, as I don't feel it adds anything for users of Flag.
However, I'd be fine with adding support for Entity API in ways that don't require the dependency.
Comment #4
idebr commentedI just wanted to check if adding a dependency to Entity API is still out of scope for this module? I am working an administration interface for a client and implementing the EntityAPIController would help a lot building the required functionality. The current entity implementation in Flag is atypical at least.
Implementing the EntityAPIController has few notable benefits:
- It removes the burden of implementing CRUD operations
- It is familiar for developers who work routinely with the Entity API
- It will make the transition to OOP in Drupal 8 considerably easier
I would be happy to contribute with patches and additional tests if you would consider integrating the Entity API into Flag.
Comment #5
joachim commentedI don't think we can add a dependency at this point in the development cycle.
I'm also unsure what it would provide:
- It removes the burden of implementing CRUD operations
We already have those in the flag_flag class.
- It is familiar for developers who work routinely with the Entity API
True, but flag has to do its own thing because of its API. You can't construct a flagging and just entity_save() it -- you'd be missing out all the Flag hook invocation and housekeeping.
- It will make the transition to OOP in Drupal 8 considerably easier
The D8 version of Flag is already underway, and AFAIK is a complete ground-up rebuild.
Could you explain more about what is missing, and what the pain points are?
Comment #6
ivnishClosed as outdated because Drupal 7 is EOL