You are here

public function LocalTaskItemInterface::updateData in Translation Management Tool 8

Updates the values for a specific substructure in the data array.

The values are either set or updated but never deleted.

Parameters

string|array $key: Key pointing to the item the values should be applied. The key can be either be an array containing the keys of a nested array hierarchy path or a string with '][' or '|' as delimiter.

array $values: Nested array of values to set.

bool $replace: (optional) When TRUE, replaces the structure at the provided key instead of writing into it.

1 method overrides LocalTaskItemInterface::updateData()
LocalTaskItem::updateData in translators/tmgmt_local/src/Entity/LocalTaskItem.php
Updates the values for a specific substructure in the data array.

File

translators/tmgmt_local/src/LocalTaskItemInterface.php, line 110

Class

LocalTaskItemInterface
Interface for tmgmt_local_task_item entity.

Namespace

Drupal\tmgmt_local

Code

public function updateData($key, $values = array(), $replace = FALSE);