private getFieldCopyToProperties ( Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface $field ) : array | ||
$field | Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface | Field to be checked. |
return | array |
private function getFieldCopyToProperties(FieldInterface $field)
{
$copyTo = [];
foreach ($this->copyFieldMap as $method => $targetField) {
if ($field->{$method}()) {
$copyTo[] = $targetField;
}
}
return $copyTo;
}