main/core/Event/User/DecorateUserEvent.php
public function add($key, $data)
    {
        $this->validate($key, $data);

        $this->injectedData[$key] = $data;
    }
public function add($key, $data)
    {
        $this->validate($key, $data);

        $this->injectedData[$key] = $data;
    }
public function add ( $ key , $ data ) { $ this -> validate ( $ key , $ data ) ; $ this -> injectedData [ $ key ] = $ data ; }
Adds custom data to the resource node.

@param string $key
@param mixed  $data
Adds custom data to the resource node .