for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Stinger Entity Search package.
*
* (c) Oliver Kotte <[email protected]>
* (c) Florian Meyer <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace StingerSoft\EntitySearchBundle\Services\Facet;
use StingerSoft\EntitySearchBundle\Model\Document;
class FileTypeFacet implements FacetServiceInterface {
const SERVICE_ID = 'stinger_soft_entity_search.facets.filetype';
public function getField() {
return Document::FIELD_CONTENT_TYPE;
}
public function getFormOptions() {
return array(
'label' => 'stinger_soft_entity_search.forms.query.filetype.label',
'translation_domain' => 'StingerSoftEntitySearchBundle'
);
public function getFacetFormatter() {
return null;