summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranon2017-03-23 00:05:17 +0100
committerEmil Stjerneman2017-03-23 00:05:17 +0100
commitc8cee078c3fb1b9acb8c839dfa14f14e6223e65f (patch)
tree7385ad3cc47a14e1e1c6c1560b177bf45dd6ba89
parent78c1460a507b0d73e3875b4022c9d9c008b50e0f (diff)
by anon: Clean up8.x-5.0-beta5
-rw-r--r--linkit.module2
-rw-r--r--tests/fixtures/update/linkit-additions.php24
2 files changed, 12 insertions, 14 deletions
diff --git a/linkit.module b/linkit.module
index 86abac4..affeaeb 100644
--- a/linkit.module
+++ b/linkit.module
@@ -70,8 +70,6 @@ function linkit_form_editor_link_dialog_alter(&$form, FormStateInterface $form_s
}
$linkit_profile_id = $editor->getSettings()['plugins']['drupallink']['linkit_profile'];
- /** @var \Drupal\linkit\Entity\Profile $linkit_profile */
- $linkit_profile = Drupal::entityTypeManager()->getStorage('linkit_profile')->load($linkit_profile_id);
if (isset($form_state->getUserInput()['editor_object'])) {
$input = $form_state->getUserInput()['editor_object'];
diff --git a/tests/fixtures/update/linkit-additions.php b/tests/fixtures/update/linkit-additions.php
index 22550dc..07a60f1 100644
--- a/tests/fixtures/update/linkit-additions.php
+++ b/tests/fixtures/update/linkit-additions.php
@@ -18,18 +18,18 @@ $configs = [];
$configs[] = Yaml::decode(file_get_contents(__DIR__ . '/linkit.linkit_profile.test_profile.yml'));
$configs[] = Yaml::decode(file_get_contents(__DIR__ . '/linkit.linkit_profile.test_profile_with_imce.yml'));
foreach ($configs as $config) {
-$connection->insert('config')
- ->fields([
- 'collection',
- 'name',
- 'data',
- ])
- ->values([
- 'collection' => '',
- 'name' => 'linkit.linkit_profile.' . $config['id'],
- 'data' => serialize($config),
- ])
- ->execute();
+ $connection->insert('config')
+ ->fields([
+ 'collection',
+ 'name',
+ 'data',
+ ])
+ ->values([
+ 'collection' => '',
+ 'name' => 'linkit.linkit_profile.' . $config['id'],
+ 'data' => serialize($config),
+ ])
+ ->execute();
}
// Configuration for text formats.