You are here

protected function ElasticsearchViewsEntityField::getParentPath in Elasticsearch Connector 8.2

Same name and namespace in other branches
  1. 8.7 modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntityField.php \Drupal\elasticsearch_connector_views\Plugin\views\field\ElasticsearchViewsEntityField::getParentPath()
  2. 8.5 modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntityField.php \Drupal\elasticsearch_connector_views\Plugin\views\field\ElasticsearchViewsEntityField::getParentPath()
  3. 8.6 modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntityField.php \Drupal\elasticsearch_connector_views\Plugin\views\field\ElasticsearchViewsEntityField::getParentPath()

Retrieves the property path of the parent property.

Return value

string|null The property path of the parent property.

1 call to ElasticsearchViewsEntityField::getParentPath()
ElasticsearchViewsEntityField::query in modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntityField.php
Called to add the field to a query.

File

modules/elasticsearch_connector_views/src/Plugin/views/field/ElasticsearchViewsEntityField.php, line 83

Class

ElasticsearchViewsEntityField
Displays entity field data.

Namespace

Drupal\elasticsearch_connector_views\Plugin\views\field

Code

protected 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;
}