mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
API Match new method signature from framework (#2960)
This commit is contained in:
parent
2979abf92e
commit
f9158a9dd8
@ -484,15 +484,15 @@ class VirtualPage extends Page
|
||||
* on this object.
|
||||
*
|
||||
* @param string $field
|
||||
* @return string
|
||||
* @return string|null
|
||||
*/
|
||||
public function castingHelper($field)
|
||||
public function castingHelper($field, bool $useFallback = true)
|
||||
{
|
||||
$copy = $this->CopyContentFrom();
|
||||
if ($copy && $copy->exists() && ($helper = $copy->castingHelper($field))) {
|
||||
if ($copy && $copy->exists() && ($helper = $copy->castingHelper($field, $useFallback))) {
|
||||
return $helper;
|
||||
}
|
||||
return parent::castingHelper($field);
|
||||
return parent::castingHelper($field, $useFallback);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user