Example #1
0
 /**
  * Get context.
  *
  * @return object LTIContext object for this resource link.
  */
 public function getContext()
 {
     if (is_null($this->context) && !is_null($this->contextId)) {
         $this->context = Context::fromRecordId($this->contextId, $this->getDataConnector());
     }
     return $this->context;
 }