2 namespace TYPO3\CMS\Fluid\ViewHelpers\Widget\Controller;
30 $this->view->assign(
'id', $this->widgetConfiguration[
'for']);
39 $searchProperty = $this->widgetConfiguration[
'searchProperty'];
40 $query = $this->widgetConfiguration[
'objects']->getQuery();
41 $constraint = $query->getConstraint();
42 if ($constraint !== null) {
43 $query->matching($query->logicalAnd($constraint, $query->like($searchProperty,
'%' . $term .
'%',
false)));
45 $query->matching($query->like($searchProperty,
'%' . $term .
'%',
false));
47 $results = $query->execute();
49 foreach ($results as $singleResult) {
50 $val = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getProperty($singleResult, $searchProperty);
57 return json_encode($output);