Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
Remove dead code from Lightning profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
phenaproxima committed Nov 16, 2020
1 parent cf1f498 commit 3cd9c2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
global:
- ORCA_SUT_NAME=acquia/lightning
- ORCA_SUT_BRANCH=8.x-3.x
- ORCA_VERSION=master
- ORCA_VERSION=v2.11.3
- ORCA_PACKAGES_CONFIG_ALTER=../lightning/tests/packages_alter.yml
- ORCA_FIXTURE_PROFILE=lightning
- ORCA_TELEMETRY_ENABLE=TRUE
Expand All @@ -39,6 +39,7 @@ matrix:
- env: ORCA_JOB=CORE_NEXT

before_install:
- composer self-update 1.10.16
- git clone --branch ${ORCA_VERSION} --depth 1 https://github.com/acquia/orca.git ../orca
- ../orca/bin/travis/before_install.sh

Expand Down
18 changes: 0 additions & 18 deletions lightning.profile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* The Lightning profile.
*/

use Drupal\lightning_core\ConfigHelper as Config;
use Drupal\node\Entity\NodeType;
use Drupal\user\Entity\User;
use Drupal\user\RoleInterface;
Expand Down Expand Up @@ -463,23 +462,6 @@ function lightning_alter_frontpage_view() {
->save(TRUE);
}

/**
* Implements hook_modules_installed().
*/
function lightning_modules_installed(array $modules) {
if (\Drupal::isConfigSyncing()) {
return;
}

if (in_array('lightning_dev', $modules, TRUE)) {
Config::forModule('lightning_media')
->optional()
->getEntity('user_role', 'media_creator')
->grantPermission('use editorial transition create_new_draft')
->save();
}
}

/**
* Implements hook_ENTITY_TYPE_presave().
*/
Expand Down

0 comments on commit 3cd9c2b

Please sign in to comment.