$rendered_fields = &
$this->rendered_fields
[$index];
$post_render_tokens =
[];
foreach ($field_ids as $id) { $rendered_fields[$id] =
$data[$id]['#markup'
];
$tokens =
$fields[$id]->
postRender($row,
$rendered_fields[$id]);
if ($tokens) { $post_render_tokens +=
$tokens;
} } // Populate row tokens.
$this->rowTokens
[$index] =
$this->view->field
[$render_tokens_field_id]->
getRenderTokens([]);
// Replace post-render tokens.
if ($post_render_tokens) { $placeholders =
array_keys($post_render_tokens);
$values =
array_values($post_render_tokens);
foreach ($this->rendered_fields
[$index] as &
$rendered_field) { // Placeholders and rendered fields have been processed by the
// render system and are therefore safe.
$rendered_field = ViewsRenderPipelineMarkup::
create(str_replace($placeholders,
$values,
$rendered_field));
} } }