Upgrade to 3.5.1
This commit is contained in:
@@ -353,6 +353,7 @@ abstract class FieldClass
|
||||
'saveable' => $this->isSaveable(),
|
||||
'translate' => $this->translate(),
|
||||
'type' => $this->type(),
|
||||
'when' => $this->when(),
|
||||
'width' => $this->width(),
|
||||
];
|
||||
}
|
||||
@@ -614,6 +615,16 @@ abstract class FieldClass
|
||||
return Data::encode($value, 'yaml');
|
||||
}
|
||||
|
||||
/**
|
||||
* Conditions when the field will be shown
|
||||
*
|
||||
* @return array|null
|
||||
*/
|
||||
public function when(): ?array
|
||||
{
|
||||
return $this->when;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the width of the field in
|
||||
* the Panel grid
|
||||
|
Reference in New Issue
Block a user