function TestItem::delete

Overrides FieldItemBase::delete

File

core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php, line 116

Class

TestItem
Defines the 'test_field' entity field item.

Namespace

Drupal\field_test\Plugin\Field\FieldType

Code

public function delete() {
  // Reports that delete() method is executed for testing purposes.
  FieldTestHelper::memorize('field_test_field_delete', [
    $this->getEntity(),
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.