... | @@ -36,7 +36,7 @@ Once introduced the list of options you want, and to add the dynamic select list |
... | @@ -36,7 +36,7 @@ Once introduced the list of options you want, and to add the dynamic select list |
|
`function imgroup_select(FieldStorageConfig $definition, ContentEntityInterface $entity = NULL, $cacheable) {`
|
|
`function imgroup_select(FieldStorageConfig $definition, ContentEntityInterface $entity = NULL, $cacheable) {`
|
|
|
|
|
|
`$database = \Drupal::database();`\
|
|
`$database = \Drupal::database();`\
|
|
` `$query = $database->query(`"SELECT field_key_value, title `\
|
|
` `$query = $database->query(`"SELECT field_key_value, title`\
|
|
<span dir="">FROM {guifi__field_type} t, {guifi__field_weight} w, {guifi_field_data} l, {guifi__field_key} k </span>\
|
|
<span dir="">FROM {guifi__field_type} t, {guifi__field_weight} w, {guifi_field_data} l, {guifi__field_key} k </span>\
|
|
`WHERE t.field_type_value = 'im_groups' `\
|
|
`WHERE t.field_type_value = 'im_groups' `\
|
|
` AND t.entity_id = w.entity_id AND w.entity_id=l.id `\
|
|
` AND t.entity_id = w.entity_id AND w.entity_id=l.id `\
|
... | @@ -55,11 +55,8 @@ Once introduced the list of options you want, and to add the dynamic select list |
... | @@ -55,11 +55,8 @@ Once introduced the list of options you want, and to add the dynamic select list |
|
1. The endpoint provided by the mentioned above view. Example:\
|
|
1. The endpoint provided by the mentioned above view. Example:\
|
|
<http://127.0.0.1/api/v1/select_options?option_type=execution_status&_format=json>
|
|
<http://127.0.0.1/api/v1/select_options?option_type=execution_status&_format=json>
|
|
2. "Headers":
|
|
2. "Headers":
|
|
|
|
|
|
`{'Content-Type': 'application/json'}`
|
|
`{'Content-Type': 'application/json'}`
|
|
3. "Response items key":
|
|
3. "Response items key":
|
|
|
|
`key`
|
|
key
|
|
|
|
4. "Response items value":
|
|
4. "Response items value":
|
|
|
|
`title` |
|
title |
|
|
|
\ No newline at end of file |
|
|