- 🇺🇸United States smustgrave
Reviewing the code
public function getValue()
1. think this will need to be typehintedpublic static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition)
2. sameSeeing #16 wonder if we need to rethink this solution what do you think @joachim? Did something change I mean.
- 🇬🇧United Kingdom joachim
I've since discovered that you can get option labels using the https://www.drupal.org/project/jsonapi_schema → module.
A computed field property seems like the right solution within the space of the entity and field system. I have no idea why JSONAPI module doesn't return computed or internal properties, but that's a discussion for another issue.
public function getValue()
1. think this will need to be typehintedpublic static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition)
2. sameWhy do they need to be "typehinted"? These are interface methods and they fully correspond to the interface method signature.
- Status changed to Needs review
over 1 year ago 10:31am 27 April 2023 - Status changed to Needs work
over 1 year ago 7:52pm 27 April 2023 The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- last update
over 1 year ago Patch Failed to Apply - Merge request !6177Issue #3174622 by Chris Burge, ayush.khare, kksandr: Added computed label property for list fields → (Closed) created by Unnamed author
- Status changed to Needs review
10 months ago 3:00pm 15 January 2024 I moved the latest patch to the merge request. Also fixed a bug due to which
allowed_values_function
was not called, since the values were taken directly from the configuration, and not through theoptions_allowed_values
function.- Status changed to Needs work
10 months ago 4:07pm 15 January 2024 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Merge request !7867Issue #3174622 by Chris Burge, ayush.khare, kksandr: Added computed label property for list fields → (Open) created by Unnamed author