Skip to content

Commit

Permalink
add official support of drupal 11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Feb 14, 2025
1 parent 574f0e5 commit cd6c726
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:

strategy:
matrix:
drupal_version: ['9.5', '10.0', '10.1', '10.2', '10.3', '11.0']
drupal_version: ['9.5', '10.0', '10.1', '10.2', '10.3', '10.4', '11.0', '11.1']
module: ['template_whisperer']
experimental: [ false ]
include:
- drupal_version: '11.1'
- drupal_version: '11.2'
module: 'template_whisperer'
experimental: true

Expand All @@ -43,11 +43,11 @@ jobs:

strategy:
matrix:
drupal_version: ['9.5', '10.0', '10.1', '10.2', '10.3', '11.0']
drupal_version: ['9.5', '10.0', '10.1', '10.2', '10.3', '10.4', '11.0', '11.1']
module: ['template_whisperer']
experimental: [ false ]
include:
- drupal_version: '11.1'
- drupal_version: '11.2'
module: 'template_whisperer'
experimental: true

Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:

strategy:
matrix:
drupal_version: ['9.5']
drupal_version: ['10.4']
module: ['template_whisperer']

steps:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- add official support of drupal 11.1

## [4.0.2] - 2024-08-09
### Added
Expand Down
2 changes: 1 addition & 1 deletion inc/access.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Drupal\Core\Session\AccountInterface;
*
* Asserts that Template Whisperer fields aren't edited by those who shouldn't.
*/
function template_whisperer_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) {
function template_whisperer_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, ?FieldItemListInterface $items = NULL) {
// Check access only for Template Whisperer field.
if ($field_definition->getType() != 'template_whisperer') {
return AccessResult::neutral();
Expand Down
4 changes: 3 additions & 1 deletion tests/src/Functional/WidgetFormElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
use Drupal\Core\Entity\Entity\EntityFormDisplay;

/**
* @coversDefaultClass \Drupal\template_whisperer\Plugin\Field\FieldWidget\TemplateWhispererWidget
* Assert fields placed in the advanced tabs.
*
* Will assert the fields Template Whisperer will be placed in the advanced tabs
* when possible. Otherwise will stay in place.
* Eg. when used on taxonomy form or when embeed into an inline-edit-form.
*
* @coversDefaultClass \Drupal\template_whisperer\Plugin\Field\FieldWidget\TemplateWhispererWidget
*
* @group template_whisperer_functional_field
* @group template_whisperer_functional
* @group template_whisperer_ui
Expand Down

0 comments on commit cd6c726

Please sign in to comment.