protected mergeDefaultAttributes ( array $attributes ) : array | ||
$attributes | array | |
return | array |
protected function mergeDefaultAttributes(array $attributes)
{
if ($this->schema && !empty($this->schema->getDefaultValues())) {
$attributes = array_merge($this->schema->getDefaultValues(), $attributes);
}
return $attributes;
}