function TemporaryArrayObjectThrowingExceptions::uksort

Same name and namespace in other branches
  1. 10 core/modules/jsonapi/src/Normalizer/Value/TemporaryArrayObjectThrowingExceptions.php \Drupal\jsonapi\Normalizer\Value\TemporaryArrayObjectThrowingExceptions::uksort()
  2. 11.x core/modules/jsonapi/src/Normalizer/Value/TemporaryArrayObjectThrowingExceptions.php \Drupal\jsonapi\Normalizer\Value\TemporaryArrayObjectThrowingExceptions::uksort()

Sort the entries by keys using a user-defined comparison function.

Parameters

callable $callback: The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.

Return value

bool This method always returns TRUE.

Throws

\Exception This class does not support this action but it must implement it, because it is extending \ArrayObject.

File

core/modules/jsonapi/src/Normalizer/Value/TemporaryArrayObjectThrowingExceptions.php, line 304

Class

TemporaryArrayObjectThrowingExceptions
An \ArrayObject that throws an exception when used as an ArrayObject.

Namespace

Drupal\jsonapi\Normalizer\Value

Code

public function uksort($callback) : bool {
    throw new \Exception('This ' . __CLASS__ . ' does not support this action but it must implement it, because it is extending \\ArrayObject.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.