Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ sudo: required

language: php
php:
- 7.1
- 7.4
- 8.0
- 8.1

services:
- docker
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ definitions to demonstrate how to use the traits.

This depends on the following software:

* [PHP 7.1](http://php.net/)
* [Drupal 8.6](https://www.drupal.org/)
* [PHP 8.0](http://php.net/)
* [Drupal 9.4](https://www.drupal.org/)
* [Behat Drupal Extension](https://github.com/jhedstrom/drupalextension)

## Installation
Expand Down
7 changes: 5 additions & 2 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ default:
- Drupal\DrupalExtension\Context\DrupalContext
extensions:
Behat\MinkExtension:
browserkit_http: ~
base_url: "${drupal.base_url}"
javascript_session: 'selenium2'
browser_name: 'chrome'
goutte: ~
selenium2:
wd_host: '${selenium.host}:${selenium.port}/wd/hub'
capabilities: { "browser": "chrome", "version": "*" }
capabilities:
nativeEvents: true
marionette: true
browserName: chrome
Drupal\DrupalExtension:
api_driver: "drupal"
drupal:
Expand Down
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"type": "library",
"license": "EUPL-1.2",
"require": {
"php": ">=7.1",
"drupal/core": "^8.6 || ^9",
"drupal/drupal-extension": "~4.0"
"php": ">=8.0",
"drupal/core": "^9.4 || ^10",
"drupal/drupal-extension": "~5.0"
},
"require-dev": {
"composer/installers": "~1.2",
"drush/drush": "~10.3",
"drupal/core-dev": "^8.9 || ^9",
"drupal/core-composer-scaffold": "^8.9 || ^9",
"guzzlehttp/guzzle": "~6.3",
"drush/drush": "~12.1",
"drupal/core-dev": "^9.4 || ^10",
"drupal/core-composer-scaffold": "^9.4 || ^10",
"guzzlehttp/guzzle": "~7.0",
"instaclick/php-webdriver": "^1.4.5",
"nikic/php-parser": "~3.0|~4.0",
"openeuropa/code-review": "^1.6|^2.0",
Expand Down Expand Up @@ -51,7 +51,10 @@
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"drupal/core-composer-scaffold": true
"drupal/core-composer-scaffold": true,
"cweagans/composer-patches": true,
"phpro/grumphp": true,
"phpstan/extension-installer": true
},
"discard-changes": true
},
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
web:
image: fpfis/httpd-php-dev:8.0
image: fpfis/httpd-php-dev:8.1
working_dir: /var/www/html
ports:
- 8080:8080
Expand Down
1 change: 1 addition & 0 deletions src/Traits/EntityTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ protected static function getEntityByLabel(string $entity_type_id, string $label

$query = $storage->getQuery()
->condition($entity_definition->getKey('label'), $label)
->accessCheck(FALSE)
->range(0, 1);

// Optionally filter by bundle.
Expand Down
2 changes: 1 addition & 1 deletion tests/config/sync/block.block.stark_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ plugin: 'system_menu_block:admin'
settings:
id: 'system_menu_block:admin'
label: Administration
provider: system
label_display: visible
provider: system
level: 1
depth: 0
expand_all_items: false
Expand Down
2 changes: 1 addition & 1 deletion tests/config/sync/block.block.stark_branding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ plugin: system_branding_block
settings:
id: system_branding_block
label: 'Site branding'
provider: system
label_display: '0'
provider: system
use_site_logo: true
use_site_name: true
use_site_slogan: true
Expand Down
2 changes: 1 addition & 1 deletion tests/config/sync/block.block.stark_local_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ plugin: local_actions_block
settings:
id: local_actions_block
label: 'Primary admin actions'
provider: core
label_display: '0'
provider: core
visibility: { }
2 changes: 1 addition & 1 deletion tests/config/sync/block.block.stark_local_tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ plugin: local_tasks_block
settings:
id: local_tasks_block
label: Tabs
provider: core
label_display: '0'
provider: core
primary: true
secondary: true
visibility: { }
2 changes: 1 addition & 1 deletion tests/config/sync/block.block.stark_login.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ plugin: user_login_block
settings:
id: user_login_block
label: 'User login'
provider: user
label_display: visible
provider: user
visibility: { }
2 changes: 1 addition & 1 deletion tests/config/sync/block.block.stark_messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ plugin: system_messages_block
settings:
id: system_messages_block
label: 'Status messages'
provider: system
label_display: '0'
provider: system
visibility: { }
2 changes: 1 addition & 1 deletion tests/config/sync/block.block.stark_page_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ plugin: page_title_block
settings:
id: page_title_block
label: 'Page title'
provider: core
label_display: '0'
provider: core
visibility: { }
2 changes: 1 addition & 1 deletion tests/config/sync/block.block.stark_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ plugin: 'system_menu_block:tools'
settings:
id: 'system_menu_block:tools'
label: Tools
provider: system
label_display: visible
provider: system
level: 1
depth: 0
expand_all_items: false
Expand Down
6 changes: 3 additions & 3 deletions tests/config/sync/block.block.useraccountmenu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ plugin: 'system_menu_block:account'
settings:
id: 'system_menu_block:account'
label: 'User account menu'
provider: system
label_display: visible
provider: system
level: 1
depth: 0
expand_all_items: false
visibility:
user_role:
id: user_role
roles:
authenticated: authenticated
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
roles:
authenticated: authenticated
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,48 @@ content:
body:
type: text_textarea_with_summary
weight: 121
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
third_party_settings: { }
region: content
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
field_tags:
type: entity_reference_autocomplete
weight: 122
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
match_limit: 10
third_party_settings: { }
type: entity_reference_autocomplete
region: content
promote:
type: boolean_checkbox
settings:
display_label: true
weight: 15
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 120
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 16
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
Expand All @@ -70,11 +70,11 @@ content:
uid:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden: { }
24 changes: 12 additions & 12 deletions tests/config/sync/core.entity_form_display.node.news.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,48 @@ content:
body:
type: text_textarea_with_summary
weight: 121
region: content
settings:
rows: 9
summary_rows: 3
placeholder: ''
third_party_settings: { }
region: content
created:
type: datetime_timestamp
weight: 10
region: content
settings: { }
third_party_settings: { }
field_tags:
type: entity_reference_autocomplete
weight: 122
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
match_limit: 10
third_party_settings: { }
type: entity_reference_autocomplete
region: content
promote:
type: boolean_checkbox
settings:
display_label: true
weight: 15
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 120
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 16
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
Expand All @@ -70,11 +70,11 @@ content:
uid:
type: entity_reference_autocomplete
weight: 5
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
hidden: { }
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ bundle: blog_post
mode: default
content:
body:
label: hidden
type: text_default
weight: 101
label: hidden
settings: { }
third_party_settings: { }
weight: 101
region: content
field_tags:
weight: 102
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
weight: 102
region: content
links:
weight: 100
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden: { }
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ bundle: blog_post
mode: teaser
content:
body:
label: hidden
type: text_summary_or_trimmed
weight: 101
label: hidden
settings:
trim_length: 600
third_party_settings: { }
weight: 101
region: content
links:
weight: 100
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden:
field_tags: true
Loading