function ConfigTranslationBlockListBuilder::buildRow
Same name in other branches
- 8.9.x core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::buildRow()
- 10 core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::buildRow()
- 11.x core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::buildRow()
Overrides ConfigTranslationEntityListBuilder::buildRow
File
-
core/
modules/ config_translation/ src/ Controller/ ConfigTranslationBlockListBuilder.php, line 57
Class
- ConfigTranslationBlockListBuilder
- Defines the config translation list builder for blocks.
Namespace
Drupal\config_translation\ControllerCode
public function buildRow(EntityInterface $entity) {
$theme = $entity->getTheme();
$plugin_definition = $entity->getPlugin()
->getPluginDefinition();
$row['label'] = [
'data' => $entity->label(),
'class' => 'table-filter-text-source',
];
$row['theme'] = [
'data' => $this->themes[$theme]->info['name'],
'class' => 'table-filter-text-source',
];
$row['category'] = [
'data' => $plugin_definition['category'],
'class' => 'table-filter-text-source',
];
$row['operations']['data'] = $this->buildOperations($entity);
return $row;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.