F
F
FlexStat2021-10-01 21:52:34
Drupal
FlexStat, 2021-10-01 21:52:34

How to update all elements of entity types programmatically?

It is necessary to update all elements of the entity, there are more than 2000 of them. The essence is that in each element, when saving, a url is generated through transliteration. There are a lot of elements, so as not to update the element of the entity types one by one, you need a solution that can automatically update all the elements. I have already rummaged through a lot of information, I tried it through VBO, but there is no such support, as I understand it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FlexStat, 2021-10-01
@FlexStat

tried to run like this, but elements are not updated
$entity_type = 'service';
$wrapper = entity_metadata_wrapper($entity_type, $entity);
$wrapper->save();

A
andead, 2021-10-02
@andead

615800d4dd1ad740899353.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question