TermDeltaEntityProcessorProperty.php 620 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Drupal\materio_sapi\Plugin\search_api\processor\Property;
  3. use Drupal\Core\Entity\TypedData\EntityDataDefinition;
  4. use Drupal\search_api\Processor\ProcessorPropertyInterface;
  5. /**
  6. * Provides a definition for a processor property that contains an entity.
  7. */
  8. class TermDeltaEntityProcessorProperty extends EntityDataDefinition implements ProcessorPropertyInterface {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function getProcessorId() {
  13. return $this->definition['processor_id'];
  14. }
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public function isHidden() {
  19. return !empty($this->definition['hidden']);
  20. }
  21. }