public function LockFieldsManager::setLockedFields in TMGMT Translator Smartling 8.4
Saves list of locked fields for a given entity.
Parameters
ContentEntityInterface $entity:
array $locked_fields:
Return value
mixed
File
- src/
Smartling/ LockFields/ LockFieldsManager.php, line 157
Class
- LockFieldsManager
- Class LockFieldsManager
Namespace
Drupal\tmgmt_smartling\Smartling\LockFieldsCode
public function setLockedFields(ContentEntityInterface $entity, array $locked_fields) {
return $this->state
->set($this
->getLockedFieldsStateKeyByContentEntity($entity), $locked_fields);
}