Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Issue forks
linkit-2886455
Commits
c8cee078
Commit
c8cee078
authored
Mar 23, 2017
by
Emil Stjerneman
Committed by
Emil Stjerneman
Mar 23, 2017
Browse files
by anon: Clean up
parent
78c1460a
Changes
2
Hide whitespace changes
Inline
Side-by-side
linkit.module
View file @
c8cee078
...
...
@@ -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'
];
...
...
tests/fixtures/update/linkit-additions.php
View file @
c8cee078
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment