public function YaMaps::prepareBody in Yandex.Maps 8
Prepares map body.
Parameters
array $body_array: Body array.
Return value
string Prepared body.
1 call to YaMaps::prepareBody()
- YaMaps::render in src/
Plugin/ views/ style/ YaMaps.php - Render the display in this style.
File
- src/
Plugin/ views/ style/ YaMaps.php, line 703
Class
- YaMaps
- Allow to display several field items on a yandex map.
Namespace
Drupal\yamaps\Plugin\views\styleCode
public function prepareBody(array $body_array) {
$output = '<div class="balloon-inner">';
foreach ($body_array as $key => $val) {
$output .= '<span class="' . $key . '">' . $val . '</span>';
}
$output .= '</div>';
return $output;
}