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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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.