public ConfigTranslationFieldListBuilder::displayBundle()
Controls the visibility of the bundle column on field list pages.
Return value
bool Whenever the bundle is displayed or not.
File
- core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php, line 145
Class
- ConfigTranslationFieldListBuilder
- Defines the config translation list builder for field entities.
Namespace
Drupal\config_translation\Controller
Code
public function displayBundle() { // The bundle key is explicitly defined in the entity definition. if ($this->baseEntityInfo->getKey('bundle')) { return TRUE; } // There is more than one bundle defined. if (count($this->baseEntityBundles) > 1) { return TRUE; } // The defined bundle ones not match the entity type name. if (!empty($this->baseEntityBundles) && !isset($this->baseEntityBundles[$this->baseEntityType])) { return TRUE; } return FALSE; }
Please login to continue.