You are here

public function SearchApiEntityField::getParentPath in Search API 8

Retrieves the property path of the parent property.

Return value

string|null The property path of the parent property.

3 calls to SearchApiEntityField::getParentPath()
SearchApiEntityField::getEntityFieldRenderer in src/Plugin/views/field/SearchApiEntityField.php
Returns the entity field renderer.
SearchApiEntityField::getItems in src/Plugin/views/field/SearchApiEntityField.php
Gets an array of items for the field.
SearchApiEntityField::query in src/Plugin/views/field/SearchApiEntityField.php
Add anything to the query that we might need to.

File

src/Plugin/views/field/SearchApiEntityField.php, line 85

Class

SearchApiEntityField
Displays entity field data.

Namespace

Drupal\search_api\Plugin\views\field

Code

public function getParentPath() {
  if (!isset($this->parentPath)) {
    $combined_property_path = $this
      ->getCombinedPropertyPath();
    list(, $property_path) = Utility::splitCombinedId($combined_property_path);
    list($this->parentPath) = Utility::splitPropertyPath($property_path);
  }
  return $this->parentPath;
}