function EntityField::getTableMapping
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::getTableMapping()
- 10 core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::getTableMapping()
- 11.x core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::getTableMapping()
Gets the table mapping for the entity type of the field.
Return value
\Drupal\Core\Entity\Sql\DefaultTableMapping The table mapping.
1 call to EntityField::getTableMapping()
- EntityField::query in core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php - Called to add the field to a query.
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php, line 1060
Class
- EntityField
- A field that displays entity field data.
Namespace
Drupal\views\Plugin\views\fieldCode
protected function getTableMapping() {
return $this->entityTypeManager
->getStorage($this->definition['entity_type'])
->getTableMapping();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.