API page: https://api.drupal.org/api/drupal/core%21modules%21views%21src%21Plugin%...

   * Example usage. If it is known that the view is a node view and that the
   * primary field will be a nid, you can do something like this:
   *
   * <!--post-FIELD-NID-->
   *
   * And then in the post render, create an array with the text that should
   * go there:
   *
   * strtr($output, array('<!--post-FIELD-1-->', 'output for FIELD of nid 1');
   *
   * All of the cached result data will be available in $view->result, as well,
   * so all ids used in the query should be discoverable.

Code example in this docblock should be enclosed with @code-@endcode.

Comments

msankhala created an issue. See original summary.

msankhala’s picture

Issue tags: +Novice
StatusFileSize
new1.46 KB

Here is a patch

msankhala’s picture

Status: Active » Needs review
surbz’s picture

Thanks @msankhala for the patch, the documentation now makes more sense.
I can confirm the patch applies clean.

surbz’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 68bb91c208 to 8.7.x and f0372ebff9 to 8.6.x. Thanks!

  • alexpott committed 68bb91c on 8.7.x
    Issue #2976816 by msankhala: CachePluginBase::postRender docblock not...

  • alexpott committed f0372eb on 8.6.x
    Issue #2976816 by msankhala: CachePluginBase::postRender docblock not...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.