MenusModelItem::canSave
Method to check if you can save a record.
Signature
protected function canSave(array
$data,
[string
$key = 'id'] )
Parameters
-
$data
- An array of input data.
-
$key
- The name of the key for the primary key.
Returns
- boolean