You are here

public function RealisticDummyContentTermReferenceFieldTest::callbackTermId in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/test/includes/RealisticDummyContentTermReferenceFieldTest.php \Drupal\realistic_dummy_content_api\Test\RealisticDummyContentTermReferenceFieldTest::callbackTermId()

Callback: dummy version of ::termId().

File

api/src/test/includes/RealisticDummyContentTermReferenceFieldTest.php, line 29

Class

RealisticDummyContentTermReferenceFieldTest
Tests for ...\includes\RealisticDummyContentTermReferenceField.

Namespace

Drupal\realistic_dummy_content_api\Test

Code

public function callbackTermId($term) {
  return $term['id'];
}