You are here

protected function ContactStorageExportService::renderAsString in Contact Storage Export 8

Renders a given array and returns its string representation.

Parameters

array $renderable_array: A renderable array.

Return value

string Returns a string value.

3 calls to ContactStorageExportService::renderAsString()
ContactStorageExportService::formatDateTime in src/ContactStorageExportService.php
Formats a date-time field item with a given format.
ContactStorageExportService::formatEntityReference in src/ContactStorageExportService.php
Formats entity reference value.
ContactStorageExportService::getFormattedValue in src/ContactStorageExportService.php
Formats values of the given field.

File

src/ContactStorageExportService.php, line 170

Class

ContactStorageExportService
Provides a set of methods to export contact messages in CSV format.

Namespace

Drupal\contact_storage_export

Code

protected function renderAsString(array $renderable_array) {
  return (string) $this->renderer
    ->renderPlain($renderable_array);
}