Skip to content

Commit

Permalink
Merge pull request #13 from kombimedia/patch-1
Browse files Browse the repository at this point in the history
Translatable marker name and popup content - Marker.php
  • Loading branch information
tomaszstrojny authored May 5, 2022
2 parents d9fc658 + e86ca03 commit 7b3c33c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions models/Marker.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ class Marker extends Model implements AddressObjectInterface
'lat' => 'required|numeric',
'lon' => 'required|numeric'
];

/**
* @var translatable marker fields
*/
public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel'];

public $translatable = [
'name',
'popup_content'
];

/**
* @var array Guarded fields
Expand Down

0 comments on commit 7b3c33c

Please sign in to comment.