Skip to content

Commit

Permalink
Merge pull request #305 from arlina-espinoza/304-compatibility-w-880
Browse files Browse the repository at this point in the history
#304 Add compatibility with Drupal core 8.8.0
  • Loading branch information
arlina-espinoza authored Dec 16, 2019
2 parents a5c28c4 + f9779bb commit 2ccf33f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis/prepare-test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ composer update ${COMPOSER_GLOBAL_OPTIONS}

# Allow to run tests with a specific Drupal core version (ex.: latest dev).
if [[ -n "${DRUPAL_CORE}" ]]; then
composer require drupal/core:${DRUPAL_CORE} webflo/drupal-core-require-dev:${DRUPAL_CORE} ${COMPOSER_GLOBAL_OPTIONS};
composer require drupal/core:${DRUPAL_CORE} drupal/core-dev:${DRUPAL_CORE} ${COMPOSER_GLOBAL_OPTIONS};
fi

# Downgrade dependencies if needed.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": ">=7.1",
"apigee/apigee-client-php": "^2.0.4",
"cweagans/composer-patches": "^1.6.5",
"drupal/core": "~8.7.0",
"drupal/core": "~8.7",
"drupal/entity": "^1.0",
"drupal/key": "^1.8",
"php-http/guzzle6-adapter": "^1.1.1"
Expand All @@ -16,7 +16,7 @@
"behat/mink" : "dev-master#9ea1cebe",
"drush/drush": "^9.0",
"phpunit/phpunit": "^6.5",
"webflo/drupal-core-require-dev": "^8.7.0"
"drupal/core-dev": "^8.7"
},
"config": {
"sort-packages": true
Expand Down
11 changes: 9 additions & 2 deletions src/Entity/EdgeEntityBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
use Apigee\Edge\Entity\EntityInterface;
use Apigee\Edge\Entity\Property\DisplayNamePropertyInterface;
use Drupal\apigee_edge\Exception\InvalidArgumentException;
use Drupal\Core\Entity\Entity;
use Drupal\Core\Entity\EntityBase;

/**
* Base class for Apigee Edge entities in Drupal.
*/
abstract class EdgeEntityBase extends Entity implements EdgeEntityInterface {
abstract class EdgeEntityBase extends EntityBase implements EdgeEntityInterface {

/**
* The decorated SDK entity.
Expand Down Expand Up @@ -154,4 +154,11 @@ public function label() {
return $label;
}

/**
* {@inheritdoc}
*/
public function isTranslatable() {
return FALSE;
}

}
6 changes: 6 additions & 0 deletions src/Entity/Storage/FieldableEdgeEntityStorageBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ public function onEntityTypeCreate(EntityTypeInterface $entity_type) {
public function onEntityTypeUpdate(EntityTypeInterface $entity_type, EntityTypeInterface $original) {
}

/**
* {@inheritdoc}
*/
public function onFieldableEntityTypeCreate(EntityTypeInterface $entity_type, array $field_storage_definitions) {
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 2ccf33f

Please sign in to comment.