original_string: protected static function get_context_block_data(\context_block $context, \stdClass $user) : \stdClass {
          global $DB;
  
          $block = $DB->get_record('block_instances', ['id' => $context->instanceid]);
  
          $basedata = (object) [
              'blocktype' => get_string('pluginname', 'block_' . $block->blockname)
          ];
  
          return $basedata;
      }
code: protected static function get_context_block_data(\context_block $context, \stdClass $user) : \stdClass {
          global $DB;
  
          $block = $DB->get_record('block_instances', ['id' => $context->instanceid]);
  
          $basedata = (object) [
              'blocktype' => get_string('pluginname', 'block_' . $block->blockname)
          ];
  
          return $basedata;
      }
code_tokens: protected static function get_context_block_data ( \ context_block $ context , \ stdClass $ user ) : \ stdClass { global $ DB ; $ block = $ DB -> get_record ( 'block_instances' , [ 'id' => $ context -> instanceid ] ) ; $ basedata = ( object ) [ 'blocktype' => get_string ( 'pluginname' , 'block_' . $ block -> blockname ) ] ; return $ basedata ; }
docstring: Get all general data for the block at this context.
  
  @param   \context_block $context The context to retrieve data for.
  @param   \stdClass $user The user being written.
  @return  \stdClass General data about this block instance.
docstring_tokens: Get all general data for the block at this context .