public function EROptionsBehavior::update in Bricks 7.5
Same name and namespace in other branches
- 7.4 plugins/behavior/EROptionsBehavior.class.php \EROptionsBehavior::update()
Act before updating an entity reference field.
Overrides EntityReference_BehaviorHandler_Abstract::update
See also
File
- plugins/
behavior/ EROptionsBehavior.class.php, line 27
Class
Code
public function update($entity_type, $entity, $field, $instance, $langcode, &$items) {
foreach ($items as &$item) {
$item['options'] = serialize($item['options']);
}
}