public function getFacetFieldsFromSchema(array &$parentInformation)
    {
        $pageRecord = $parentInformation['flexParentDatabaseRow'];
        $configuredFacets = $this->getConfiguredFacetsForPage($pageRecord['pid']);

        if (!is_array($pageRecord)) {
            $parentInformation['items'] = [];
            return;
        }

        $newItems = $this->getParsedSolrFieldsFromSchema($configuredFacets, $pageRecord);
        $parentInformation['items'] = $newItems;
    }
public function getFacetFieldsFromSchema(array &$parentInformation)
    {
        $pageRecord = $parentInformation['flexParentDatabaseRow'];
        $configuredFacets = $this->getConfiguredFacetsForPage($pageRecord['pid']);

        if (!is_array($pageRecord)) {
            $parentInformation['items'] = [];
            return;
        }

        $newItems = $this->getParsedSolrFieldsFromSchema($configuredFacets, $pageRecord);
        $parentInformation['items'] = $newItems;
    }
public function getFacetFieldsFromSchema ( array & $ parentInformation ) { $ pageRecord = $ parentInformation [ 'flexParentDatabaseRow' ] ; $ configuredFacets = $ this -> getConfiguredFacetsForPage ( $ pageRecord [ 'pid' ] ) ; if ( ! is_array ( $ pageRecord ) ) { $ parentInformation [ 'items' ] = [ ] ; return ; } $ newItems = $ this -> getParsedSolrFieldsFromSchema ( $ configuredFacets , $ pageRecord ) ; $ parentInformation [ 'items' ] = $ newItems ; }
Provides all facet fields for a flexform select, enabling the editor to select one of them.

@param array $parentInformation

@return void
Provides all facet fields for a flexform select enabling the editor to select one of them .