public function Framework::termId in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::termId()
- 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\FrameworkCode
public function termId($term) {
return $this
->implementor()
->termId($term);
}