You are here

public function SolrDocument::onChange in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/DataType/SolrDocument.php \Drupal\search_api_solr\Plugin\DataType\SolrDocument::onChange()
  2. 4.x src/Plugin/DataType/SolrDocument.php \Drupal\search_api_solr\Plugin\DataType\SolrDocument::onChange()

React to changes to a child property or item.

Note that this is invoked after any changes have been applied.

Parameters

$name: The name of the property or the delta of the list item which is changed.

Overrides TraversableTypedDataInterface::onChange

File

src/Plugin/DataType/SolrDocument.php, line 141

Class

SolrDocument
Defines the "Solr document" data type.

Namespace

Drupal\search_api_solr\Plugin\DataType

Code

public function onChange($name) {

  // Do nothing.  Unlike content entities, Items don't need to be notified of
  // changes.
}