blacksmith-8.x-1.x-dev/src/Blacksmith/EntityImporter/FieldFormatter/FormattedTextWithSummaryFieldFormatter.php
src/Blacksmith/EntityImporter/FieldFormatter/FormattedTextWithSummaryFieldFormatter.php
<?php
namespace Drupal\blacksmith\Blacksmith\EntityImporter\FieldFormatter;
/**
* Class FormattedTextWithSummaryFieldFormatter.
*
* @package Drupal\blacksmith\Blacksmith\EntityImporter\FieldFormatter
*/
class FormattedTextWithSummaryFieldFormatter extends FieldFormatterBase {
/**
* {@inheritdoc}
*/
protected function formatUniqueValue($value) : array {
if (is_string($value)) {
return [
'value' => $value,
'format' => NULL,
'summary' => '',
];
}
return $value;
}
}
