Skip to content
Snippets Groups Projects
Commit 4f3e7a82 authored by Kristof De Jaeger's avatar Kristof De Jaeger
Browse files

Issue #3188545 by gaards: Minor typos in comments and descriptions

parent 1e4ad7ea
Branches
Tags
No related merge requests found
......@@ -39,7 +39,7 @@ core.entity_view_display.*.*.*.third_party.ds:
label: 'The outer wrapper of the layout'
attributes:
type: string
label: 'The attributesof the layout'
label: 'The attributes of the layout'
link_attribute:
type: string
label: 'The link attribute of the layout'
......
......@@ -608,7 +608,8 @@ function ds_preprocess_ds_layout(&$variables) {
'view_mode' => $variables['content']['#view_mode'],
];
// Special case for User entity, becase $variables['user'] contains the currently logged in user
// Special case for User entity, because $variables['user'] contains the
// currently logged in user.
if($entity_type_id !== 'user' && isset($variables[$entity_type_id])) {
$context['entity'] = $variables[$entity_type_id];
}
......
......@@ -60,7 +60,7 @@ class BlockFieldForm extends FieldFormBase implements ContainerInjectionInterfac
'#type' => 'checkbox',
'#title' => $this->t('Add block wrappers and classes'),
'#default_value' => $field['properties']['add_block_wrappers'] ?? FALSE,
'#description' => $this->t('Render using the block theme hook to add the block wrappers and clases.'),
'#description' => $this->t('Render using the block theme hook to add the block wrappers and classes.'),
'#weight' => 91,
];
......
......@@ -22,12 +22,13 @@ function ds_test_theme_suggestions_alter(&$suggestions, $variables, $base_theme_
}
/**
* Helper function to return the tag name basid on tid.
* Helper function to return the tag name based on tid.
*/
function ds_test_get_tag_name($raw_value, $object) {
$entity_manager = \Drupal::entityTypeManager();
/** @var \Drupal\taxonomy\TermInterface $term */
$term = $entity_manager->getStorage('taxonomy_term')->load($raw_value);
return $term->name->value;
return $term->label();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment