Skip to content
Snippets Groups Projects
Commit 09100a8c authored by Szczepan Musiał's avatar Szczepan Musiał
Browse files

[#3536541] Fix phpcs and cspell

parent 299ac829
No related branches found
No related tags found
1 merge request!19[#3536541] Fix phpcs and cspell
Pipeline #550059 passed
# List of words excluded from cspell validation for the project Custom Breadcrumbs.
# Mostly contains custom names: variables, modules, users, etc...
# Ignore certain string values used.
abventor
ltnolink
ltterm
# User names: contributors, maintainers, users (mostly in README.md files).
szczepan
lamp5
......@@ -238,7 +238,7 @@ class BreadcrumbBuilder implements BreadcrumbBuilderInterface {
'user.permissions',
'url.path.parent',
'url.path.is_front',
'route'
'route',
]);
$breadcrumb->addCacheTags(['config:custom_breadcrumbs.settings']);
......
......
......@@ -29,7 +29,7 @@ class CustomBreadcrumbsListBuilder extends ConfigEntityListBuilder {
/** @var \Drupal\custom_breadcrumbs\CustomBreadcrumbsInterface $entity */
$row['label'] = $entity->label();
$row['entityType'] = $entity->get('entityType');
$row['entityBundlee'] = $entity->get('entityBundle');
$row['entityBundle'] = $entity->get('entityBundle');
$row['language'] = $entity->get('language');
$row['status'] = $entity->status() ? $this->t('Enabled') : $this->t('Disabled');
return $row + parent::buildRow($entity);
......
......
......@@ -112,7 +112,7 @@ class CustomBreadcrumbs extends ConfigEntityBase implements CustomBreadcrumbsInt
protected $language;
/**
* Breadcrum paths.
* Breadcrumb paths.
*
* @var string
*/
......
......
......@@ -197,7 +197,7 @@ class CustomBreadcrumbsForm extends EntityForm {
'#type' => 'textarea',
'#title' => $this->t('Extra cache contexts'),
'#default_value' => $this->entity->get('extraCacheContexts'),
'#description' => $this->t('You can define an extra cache contexts for example for curent request query "url.query_args:search".'),
'#description' => $this->t('You can define an extra cache contexts for example for current request query "url.query_args:search".'),
];
$form['token_tree'] = [
......@@ -320,7 +320,7 @@ class CustomBreadcrumbsForm extends EntityForm {
$options['_none'] = $this->t('Select entity type');
$types = $this->entityTypeManager->getDefinitions();
foreach ($types as $key => $type) {
if ($type instanceof ContentEntityType && $type->getLinkTemplates('canocical')) {
if ($type instanceof ContentEntityType && $type->getLinkTemplates('canonical')) {
$options[$key] = $type->getLabel();
}
}
......
......
......@@ -48,7 +48,7 @@ class CustomBreadcrumbsSettingsForm extends ConfigFormBase {
$form['current_page'] = [
'#type' => 'checkbox',
'#title' => $this->t('Append curent page title like the latest crumb'),
'#title' => $this->t('Append current page title like the latest crumb'),
'#default_value' => $config->get('current_page'),
];
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment