/* Decoded by unphp.net */ setLabel(t('Value')) ->setRequired(TRUE); return $properties; } /** * {@inheritdoc} */ public static function schema(FieldStorageDefinitionInterface $field_definition) { return [ 'columns' => [ 'value' => [ 'description' => 'The object item value.', 'type' => 'blob', 'not null' => TRUE, 'serialize' => TRUE, ], ], ]; } /** * {@inheritdoc} */ public function setValue($values, $notify = TRUE) { if (isset($values['value'])) { // @todo Remove this in https://www.drupal.org/node/2788637. if (is_string($values['value'])) { $values['value'] = unserialize($values['value']); } } parent::setValue($values, $notify); } } ?>