SectionsFormatter
class SectionsFormatter implements FormatterInterface, ValidDataTypesInterface, RenderDataInterface (View source)
Display sections of data.
This formatter takes data in the RowsOfFields data type. Each row represents one section; the data in each section is rendered in two columns, with the key in the first column and the value in the second column.
Traits
Provides a default implementation of isValidDataType.
Methods
validDataTypes()
Return the list of data types acceptable to this formatter
isValidDataType(ReflectionClass $dataType)
Return the list of data types acceptable to this formatter
from
ValidDataTypesTrait
from
RenderTableDataTrait
from
RenderTableDataTrait
mixed
validate(mixed $structuredData)
No description
Details
ReflectionClass[]
validDataTypes()
Return the list of data types acceptable to this formatter
isValidDataType(ReflectionClass $dataType)
Return the list of data types acceptable to this formatter
renderData($originalData, $restructuredData, FormatterOptions $options)
No description
protected
renderEachCell($originalData, $restructuredData, FormatterOptions $options)
No description
mixed
validate(mixed $structuredData)
No description
write(OutputInterface $output, $tableTransformer, FormatterOptions $options)
No description