public function Drupal8::termName in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::termName()
- 7.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::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 Framework::termName
File
- api/
src/ Framework/ Drupal8.php, line 447
Class
- Drupal8
- Drupal 8-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function termName($term) {
return $term
->getName();
}