You are here

public function Framework::termId 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::termId()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::termId()

Given a taxonomy term, return its id.

Parameters

object $term: Drupal taxonomy term object.

Return value

int The taxonomy term id.

Throws

\Exception

Overrides FrameworkInterface::termId

1 method overrides Framework::termId()
Drupal8::termId in api/src/Framework/Drupal8.php
Given a taxonomy term, return its id.

File

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

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function termId($term) {
  return $this
    ->implementor()
    ->termId($term);
}