protected function TranslationOperationsField::buildSourceEntityLangcodeKey in Translation Views 8
Build value key.
Value key based on base table, and system name of langcode key (it might be differ then just 'langcode'), usually table alias is [entity_type]_field_data_[langcode_key].
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: Used to extract entity type info from entity.
Return value
string The value key.
1 call to TranslationOperationsField::buildSourceEntityLangcodeKey()
- TranslationOperationsField::render in src/
Plugin/ views/ field/ TranslationOperationsField.php - Build operation links.
File
- src/
Plugin/ views/ field/ TranslationOperationsField.php, line 118
Class
- TranslationOperationsField
- Renders translation operations links.
Namespace
Drupal\translation_views\Plugin\views\fieldCode
protected function buildSourceEntityLangcodeKey(ContentEntityInterface $entity) {
return implode('_', [
$this->view->storage
->get('base_table'),
$entity
->getEntityType()
->getKey('langcode'),
]);
}