0

It is posible to get data from database and insert into fiel using computed field module?

I create computed field_a and in custom module put this:

function computed_field_field_a_compute($entity_type_manager, $entity, $fields, $delta) {

$res = db_query("SELECT n.nid FROM {node} n WHERE n.type = 'article'"); }

How to get for example title of content type from database and insert in compute field_a?

Mariusz
  • 1
  • 1

0 Answers0