for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\Driver\Fields\Drupal7;
/**
* Default field handler for Drupal 7.
*/
class DefaultHandler extends AbstractHandler {
* {@inheritdoc}
public function expand($values) {
$return = [];
foreach ($values as $value) {
// Use the column name 'value' by default if the value is not an array.
if (!is_array($value)) {
$value = ['value' => $value];
}
$return[$this->language][] = $value;
return $return;