lajax\translatemanager\behaviors\TranslateBehavior::saveAttributes PHP Method

saveAttributes() public method

Saveing new language element by category.
public saveAttributes ( Event $event )
$event yii\base\Event
    public function saveAttributes($event)
    {
        /* @var $owner BaseActiveRecord */
        $owner = $this->owner;
        foreach ($this->translateAttributes as $attribute) {
            if ($owner->isAttributeChanged($attribute)) {
                Language::saveMessage($owner->attributes[$attribute], $this->category);
            }
        }
    }