original_string: public static function data_for_related_competencies_section($competencyid) {
          global $PAGE;
  
          $params = self::validate_parameters(self::data_for_related_competencies_section_parameters(), array(
              'competencyid' => $competencyid,
          ));
          $competency = api::read_competency($params['competencyid']);
          self::validate_context($competency->get_context());
  
          $renderable = new \tool_lp\output\related_competencies($params['competencyid']);
          $renderer = $PAGE->get_renderer('tool_lp');
  
          return $renderable->export_for_template($renderer);
      }
code: public static function data_for_related_competencies_section($competencyid) {
          global $PAGE;
  
          $params = self::validate_parameters(self::data_for_related_competencies_section_parameters(), array(
              'competencyid' => $competencyid,
          ));
          $competency = api::read_competency($params['competencyid']);
          self::validate_context($competency->get_context());
  
          $renderable = new \tool_lp\output\related_competencies($params['competencyid']);
          $renderer = $PAGE->get_renderer('tool_lp');
  
          return $renderable->export_for_template($renderer);
      }
code_tokens: public static function data_for_related_competencies_section ( $ competencyid ) { global $ PAGE ; $ params = self :: validate_parameters ( self :: data_for_related_competencies_section_parameters ( ) , array ( 'competencyid' => $ competencyid , ) ) ; $ competency = api :: read_competency ( $ params [ 'competencyid' ] ) ; self :: validate_context ( $ competency -> get_context ( ) ) ; $ renderable = new \ tool_lp \ output \ related_competencies ( $ params [ 'competencyid' ] ) ; $ renderer = $ PAGE -> get_renderer ( 'tool_lp' ) ; return $ renderable -> export_for_template ( $ renderer ) ; }
docstring: Data to render in the related competencies section.
  
  @param int $competencyid
  @return array Related competencies and whether to show delete action button or not.
docstring_tokens: Data to render in the related competencies section .