WebformObjectHelper.php in Webform 8.5
Same filename and directory in other branches
Namespace
Drupal\webform\UtilityFile
src/Utility/WebformObjectHelper.phpView source
<?php
namespace Drupal\webform\Utility;
/**
* Provides helper to operate on objects.
*/
class WebformObjectHelper {
/**
* Sort object by properties.
*
* @param object $object
* An object.
*
* @return object
* Object sorted by properties.
*/
public static function sortByProperty($object) {
$array = (array) $object;
ksort($array);
return (object) $array;
}
}
Classes
Name | Description |
---|---|
WebformObjectHelper | Provides helper to operate on objects. |