You are here

public function Field::getCombinedPropertyPath in Search API 8

Retrieves the "combined" property path of the field.

This consists of the datasource ID (if any) and the property path, separated by the "datasource separator" (also used in item IDs). It can be used to quickly get a unique identifier for a property on an index.

Return value

string The "combined" property path of the field.

Overrides FieldInterface::getCombinedPropertyPath

See also

\Drupal\search_api\Utility::createCombinedId()

File

src/Item/Field.php, line 376

Class

Field
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

public function getCombinedPropertyPath() {
  return Utility::createCombinedId($this
    ->getDatasourceId(), $this
    ->getPropertyPath());
}