You are here

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

Given a taxonomy term, return its name.

Parameters

object $term: Drupal taxonomy term object.

Return value

string The taxonomy term name, such as "Bananas".

Throws

\Exception

Overrides FrameworkInterface::termName

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

File

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

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

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