public function RadioactivityReferenceItem::delete in Radioactivity 4.0.x
Defines custom delete behavior for field values.
This method is called during the process of deleting an entity, just before values are deleted from storage.
Overrides FieldItemBase::delete
File
- src/
Plugin/ Field/ FieldType/ RadioactivityReferenceItem.php, line 203
Class
- RadioactivityReferenceItem
- Plugin implementation of the Radioactivity Reference field type.
Namespace
Drupal\radioactivity\Plugin\Field\FieldTypeCode
public function delete() {
if ($this->entity) {
$this->entity
->delete();
}
}