Smile\ElasticsuiteCore\Index\Mapping::getFieldCopyToProperties PHP Метод

getFieldCopyToProperties() приватный Метод

Example : searchable fields are copied into the default "search" field.
private getFieldCopyToProperties ( Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface $field ) : array
$field Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface Field to be checked.
Результат array
    private function getFieldCopyToProperties(FieldInterface $field)
    {
        $copyTo = [];
        foreach ($this->copyFieldMap as $method => $targetField) {
            if ($field->{$method}()) {
                $copyTo[] = $targetField;
            }
        }
        return $copyTo;
    }