You are here

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

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::vocabularyMachineName()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::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 FrameworkInterface::vocabularyMachineName

1 method overrides Framework::vocabularyMachineName()
Drupal8::vocabularyMachineName in api/src/Framework/Drupal8.php
Given a vocabulary, return its name.

File

api/src/Framework/Framework.php, line 513

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

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