1KA_F2F/frontend/drupal9/web/modules/contrib/facets/src/FacetSourceInterface.php
2022-07-07 14:41:31 +02:00

69 lines
1.3 KiB
PHP

<?php
namespace Drupal\facets;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* The facet source entity.
*/
interface FacetSourceInterface extends ConfigEntityInterface {
/**
* Returns the label of the facet source.
*
* @return string
* The facet name.
*/
public function getName();
/**
* Returns the filter key for this facet source.
*
* @return string
* The filter key.
*/
public function getFilterKey();
/**
* Sets the filter key for this facet source.
*
* @param string $filter_key
* The filter key.
*/
public function setFilterKey($filter_key);
/**
* Sets the processor name to be used.
*
* @param string $processor_name
* Plugin name of the url processor.
*/
public function setUrlProcessor($processor_name);
/**
* Returns a string version of the url processor.
*
* @return string
* The url processor to be used as a string.
*/
public function getUrlProcessorName();
/**
* Returns an array with breadcrumb settings.
*
* @return array
* The breadcrumb settings.
*/
public function getBreadcrumbSettings();
/**
* Sets breadcrumb settings.
*
* @param array $settings
* The breadcrumb settings.
*/
public function setBreadcrumbSettings(array $settings);
}