Commit c8cee078 authored by anon's avatar anon Committed by anon

by anon: Clean up

parent 78c1460a
......@@ -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'];
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment