protected function SerializerDecorator::relay in JSON:API Extras 8.3
Relays a method call to the decorated service.
Parameters
string $method_name: The method to invoke on the decorated serializer.
array $args: The arguments to pass to the invoked method on the decorated serializer.
Return value
mixed The return value.
10 calls to SerializerDecorator::relay()
- SerializerDecorator::decode in src/
SerializerDecorator.php - Decodes a string into PHP data.
- SerializerDecorator::denormalize in src/
SerializerDecorator.php - Denormalizes data back into an object of the given class.
- SerializerDecorator::deserialize in src/
SerializerDecorator.php - Deserializes data into the given type.
- SerializerDecorator::encode in src/
SerializerDecorator.php - Encodes data into the given format.
- SerializerDecorator::normalize in src/
SerializerDecorator.php - Normalizes an object into a set of arrays/scalars.
File
- src/
SerializerDecorator.php, line 65
Class
- SerializerDecorator
- A decorated JSON:API serializer, with lazily initialized fallback serializer.
Namespace
Drupal\jsonapi_extrasCode
protected function relay($method_name, array $args) {
$this
->lazilyInitialize();
return call_user_func_array([
$this->decoratedSerializer,
$method_name,
], $args);
}