Ejemplo n.º 1
0
 /**
  * Renders the wrapped term using the plugin settings
  *
  * @param \Dpn\DpnGlossary\Domain\Model\Term
  * @return string
  */
 protected function termWrapper(Term $term)
 {
     // get content object type
     $contentObjectType = $this->tsConfig['settings.']['termWraps'];
     // get term wrapping settings
     $wrapSettings = $this->tsConfig['settings.']['termWraps.'];
     // pass term data to the cObject pseudo constructor
     $this->cObj->start($term->toArray());
     // return the wrapped term
     return $this->cObj->cObjGetSingle($contentObjectType, $wrapSettings);
 }