You are here

public function Drupal8::vocabularyMachineName in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::vocabularyMachineName()
  2. 7.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::vocabularyMachineName()

Given a vocabulary, return its name.

Parameters

object $vocabulary: A Drupal vocabulary object.

Return value

string A vocabulary machine name, such as "fruit".

Throws

\Exception

Overrides Framework::vocabularyMachineName

File

api/src/Framework/Drupal8.php, line 461

Class

Drupal8
Drupal 8-specific code.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function vocabularyMachineName($vocabulary) {
  return $this
    ->vocabularyIdentifier($vocabulary);
}