You are here

public function RealisticDummyContentTermReferenceFieldTest::callbackVocabularyMachineName 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::callbackVocabularyMachineName()

Callback: dummy version of ::vocabularyMachineName().

File

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

Class

RealisticDummyContentTermReferenceFieldTest
Tests for ...\includes\RealisticDummyContentTermReferenceField.

Namespace

Drupal\realistic_dummy_content_api\Test

Code

public function callbackVocabularyMachineName($vocabulary) {
  return $vocabulary['vid'];
}