public function cObjGetSingleExt(
        /** @noinspection PhpUnusedParameterInspection */ $name,
        array $configuration,
        /** @noinspection PhpUnusedParameterInspection */ $TyposcriptKey,
        $contentObject
    ) {

        if (!is_array($configuration['classes.'])) {
            throw new \InvalidArgumentException('No class configuration configured for SOLR_CLASSIFICATION object. Given configuration: ' . serialize($configuration));
        }

        $configuredMappedClasses = $configuration['classes.'];
        unset($configuration['classes.']);

        $data = '';
        if (isset($configuration['value'])) {
            $data = $configuration['value'];
            unset($configuration['value']);
        }

        if (!empty($configuration)) {
            $data = $contentObject->stdWrap($data, $configuration);
        }
        $classifications = $this->buildClassificationsFromConfiguration($configuredMappedClasses);
        /** @var $classificationService ClassificationService */
        $classificationService = GeneralUtility::makeInstance(ClassificationService::class);
        $classes = serialize($classificationService->getMatchingClassNames((string)$data, $classifications));

        return $classes;
    }
public function cObjGetSingleExt(
        /** @noinspection PhpUnusedParameterInspection */ $name,
        array $configuration,
        /** @noinspection PhpUnusedParameterInspection */ $TyposcriptKey,
        $contentObject
    ) {

        if (!is_array($configuration['classes.'])) {
            throw new \InvalidArgumentException('No class configuration configured for SOLR_CLASSIFICATION object. Given configuration: ' . serialize($configuration));
        }

        $configuredMappedClasses = $configuration['classes.'];
        unset($configuration['classes.']);

        $data = '';
        if (isset($configuration['value'])) {
            $data = $configuration['value'];
            unset($configuration['value']);
        }

        if (!empty($configuration)) {
            $data = $contentObject->stdWrap($data, $configuration);
        }
        $classifications = $this->buildClassificationsFromConfiguration($configuredMappedClasses);
        /** @var $classificationService ClassificationService */
        $classificationService = GeneralUtility::makeInstance(ClassificationService::class);
        $classes = serialize($classificationService->getMatchingClassNames((string)$data, $classifications));

        return $classes;
    }
public function cObjGetSingleExt ( /** @noinspection PhpUnusedParameterInspection */ $ name , array $ configuration , /** @noinspection PhpUnusedParameterInspection */ $ TyposcriptKey , $ contentObject ) { if ( ! is_array ( $ configuration [ 'classes.' ] ) ) { throw new \ InvalidArgumentException ( 'No class configuration configured for SOLR_CLASSIFICATION object. Given configuration: ' . serialize ( $ configuration ) ) ; } $ configuredMappedClasses = $ configuration [ 'classes.' ] ; unset ( $ configuration [ 'classes.' ] ) ; $ data = '' ; if ( isset ( $ configuration [ 'value' ] ) ) { $ data = $ configuration [ 'value' ] ; unset ( $ configuration [ 'value' ] ) ; } if ( ! empty ( $ configuration ) ) { $ data = $ contentObject -> stdWrap ( $ data , $ configuration ) ; } $ classifications = $ this -> buildClassificationsFromConfiguration ( $ configuredMappedClasses ) ; /** @var $classificationService ClassificationService */ $ classificationService = GeneralUtility :: makeInstance ( ClassificationService :: class ) ; $ classes = serialize ( $ classificationService -> getMatchingClassNames ( ( string ) $ data , $ classifications ) ) ; return $ classes ; }
Executes the SOLR_CLASSIFICATION content object.

Returns mapped classes when the field matches on of the configured patterns ...

@param string $name content object name 'SOLR_CONTENT'
@param array $configuration for the content object
@param string $TyposcriptKey not used
@param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject parent cObj
@return string serialized array representation of the given list
Executes the SOLR_CLASSIFICATION content object .