Commit e67d9ef8 authored by relim's avatar relim Committed by Markus Kalkbrenner
Browse files

Issue #3220004 by kiseleva.t, relim, smustgrave, mkalkbrenner: Undefined...

Issue #3220004 by kiseleva.t, relim, smustgrave, mkalkbrenner: Undefined property $processors and $facet_source_instance
parent 313c10ba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -428,7 +428,7 @@ class Facet extends ConfigEntityBase implements FacetInterface {
   *   The loaded processors, keyed by processor ID.
   */
  protected function loadProcessors() {
    if (is_array($this->processors)) {
    if (isset($this->processors) && is_array($this->processors)) {
      return $this->processors;
    }

@@ -726,7 +726,7 @@ class Facet extends ConfigEntityBase implements FacetInterface {
   * {@inheritdoc}
   */
  public function getFacetSource() {
    if (is_null($this->facet_source_instance) && $this->facet_source_id) {
    if (!isset($this->facet_source_instance) && $this->facet_source_id) {
      /** @var \Drupal\facets\FacetSource\FacetSourcePluginManager $facet_source_plugin_manager */
      $facet_source_plugin_manager = \Drupal::service('plugin.manager.facets.facet_source');
      if (!$facet_source_plugin_manager->hasDefinition($this->facet_source_id)) {