src/Resource.php
public function addData(array $data, bool $overwrite = true): void
    {
        if ($overwrite) {
            $this->data = array_merge($this->data, $data);
        } else {
            $this->data = array_merge($data, $this->data);
        }
    }
public function addData(array $data, bool $overwrite = true): void
    {
        if ($overwrite) {
            $this->data = array_merge($this->data, $data);
        } else {
            $this->data = array_merge($data, $this->data);
        }
    }
public function addData ( array $ data , bool $ overwrite = true ) : void { if ( $ overwrite ) { $ this -> data = array_merge ( $ this -> data , $ data ) ; } else { $ this -> data = array_merge ( $ data , $ this -> data ) ; } }
Adds translation values to the resource
@param array $data Values to add
@param boolean $overwrite Whether the new array should overwrite already existing values
Adds translation values to the resource