protected static function castToString(array
$normalization) { foreach ($normalization as $key =>
$value) { if (is_bool($value)) { $normalization[$key] =
(string) (int) $value;
} elseif (is_int($value) ||
is_float($value)) { $normalization[$key] =
(string) $value;
} elseif (is_array($value)) { $normalization[$key] =
static::
castToString($value);
} } return $normalization;
} /**
* Tests a POST request for an entity, plus edge cases to ensure good DX.
*/
public function testPost() { // @todo Remove this in https://www.drupal.org/node/2300677.
if ($this->entity instanceof ConfigEntityInterface
) {