diff --git a/src/Entity/Facet.php b/src/Entity/Facet.php index 776f6f4..19eb55c 100644 --- a/src/Entity/Facet.php +++ b/src/Entity/Facet.php @@ -509,35 +509,6 @@ class Facet extends ConfigEntityBase implements FacetInterface { } /** - * Retrieves all processors supported by this facet. - * - * @return \Drupal\facets\Processor\ProcessorInterface[] - * The loaded processors, keyed by processor ID. - */ - protected function loadProcessors() { - if (!isset($this->processors)) { - /* @var $processor_plugin_manager \Drupal\facets\Processor\ProcessorPluginManager */ - $processor_plugin_manager = \Drupal::service('plugin.manager.facets.processor'); - - foreach ($processor_plugin_manager->getDefinitions() as $processor_id => $processor_definition) { - if (class_exists($processor_definition['class']) && empty($this->processors[$processor_id])) { - $settings = empty($this->processor_configs[$processor_id]['settings']) ? [] : $this->processor_configs[$processor_id]['settings']; - $settings['enabled'] = empty($this->processor_configs[$processor_id]) ? FALSE : TRUE; - $settings['facet'] = $this; - - /* @var $processor \Drupal\facets\Processor\ProcessorInterface */ - $processor = $processor_plugin_manager->createInstance($processor_id, $settings); - $this->processors[$processor_id] = $processor; - } - elseif (!class_exists($processor_definition['class'])) { - \Drupal::logger('facets')->warning('Processor @id specifies a non-existing @class.', array('@id' => $processor_id, '@class' => $processor_definition['class'])); - } - } - } - - - - /** * {@inheritdoc} */ public function getResults() {