Pimcore\Model\Object\ClassDefinition\Data\Table::getDataForSearchIndex PHP Method

getDataForSearchIndex() public method

public getDataForSearchIndex ( $object, mixed $params = [] ) : string
$object
$params mixed
return string
    public function getDataForSearchIndex($object, $params = [])
    {
        $data = $this->getDataFromObjectParam($object, $params);
        if (!empty($data)) {
            $tmpLine = [];
            if (is_array($data)) {
                foreach ($data as $row) {
                    if (is_array($row)) {
                        $tmpLine[] = implode(" ", $row);
                    }
                }
            }
            return implode("\n", $tmpLine);
        }
        return "";
    }