setArrayPath() public static method

(['a' => ['b' => 5]], 'a.b', 6) = ['a' => ['b' => 6]]
public static setArrayPath ( &$array, string $dotPath, mixed $value ) : mixed
$dotPath string
$value mixed
return mixed
Example #1
0
 public function mapValues(array &$data)
 {
     Tools::setArrayPath($data, $this->getFieldDefinition()->getId(), $this->getValue());
 }