You are here

ProcessorProperty.php in Search API 8

File

src/Processor/ProcessorProperty.php
View source
<?php

namespace Drupal\search_api\Processor;

use Drupal\Core\TypedData\DataDefinition;

/**
 * Provides a base class for normal processor-defined properties.
 */
class ProcessorProperty extends DataDefinition implements ProcessorPropertyInterface {

  /**
   * {@inheritdoc}
   */
  public function getProcessorId() {
    return $this->definition['processor_id'];
  }

  /**
   * {@inheritdoc}
   */
  public function isHidden() {
    return !empty($this->definition['hidden']);
  }

  /**
   * {@inheritdoc}
   */
  public function isList() {
    return (bool) ($this->definition['is_list'] ?? parent::isList());
  }

}

Classes

Namesort descending Description
ProcessorProperty Provides a base class for normal processor-defined properties.