Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-tsa2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BFA Sitio Web
drupal-tsa2
Commits
9a5e899f
Commit
9a5e899f
authored
5 years ago
by
Otto Zaiser
Browse files
Options
Downloads
Plain Diff
Conflict arreglado
parents
76fdd5ce
0ac8caef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsa2.module
+37
-36
37 additions, 36 deletions
tsa2.module
with
37 additions
and
36 deletions
tsa2.module
+
37
−
36
View file @
9a5e899f
...
...
@@ -42,40 +42,41 @@ function tsa2_theme($existing, $type, $theme, $path) {
function
tsa2_preprocess_html
(
&
$variables
)
{
$variables
[
'#attached'
][
'library'
][]
=
'tsa2/tsa2'
;
$config
=
\Drupal
::
config
(
'tsa2.settings'
);
$tsa2_api
=
$config
->
get
(
'tsa2_api'
);
$lb00
=
$config
->
get
(
'lb00'
);
$lb01
=
$config
->
get
(
'lb01'
);
$lb02
=
$config
->
get
(
'lb02'
);
$lb03
=
$config
->
get
(
'lb03'
);
$lb04
=
$config
->
get
(
'lb04'
);
$lb05
=
$config
->
get
(
'lb05'
);
$lb06
=
$config
->
get
(
'lb06'
);
$lb07
=
$config
->
get
(
'lb07'
);
$lb08
=
$config
->
get
(
'lb08'
);
$lb09
=
$config
->
get
(
'lb09'
);
$lb10
=
$config
->
get
(
'lb10'
);
$lb11
=
$config
->
get
(
'lb11'
);
$lb12
=
$config
->
get
(
'lb12'
);
$lb13
=
$config
->
get
(
'lb13'
);
$lb14
=
$config
->
get
(
'lb14'
);
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'tsa2_api'
]
=
$tsa2_api
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb00'
]
=
$lb00
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb01'
]
=
$lb01
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb02'
]
=
$lb02
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb03'
]
=
$lb03
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb04'
]
=
$lb04
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb05'
]
=
$lb05
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb06'
]
=
$lb06
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb07'
]
=
$lb07
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb08'
]
=
$lb08
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb09'
]
=
$lb09
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb10'
]
=
$lb10
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb11'
]
=
$lb11
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb12'
]
=
$lb12
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb13'
]
=
$lb13
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb14'
]
=
$lb14
;
$path
=
$current_path
=
\Drupal
::
service
(
'path.current'
)
->
getPath
();
if
(
$path
==
'/tsa2'
)
{
$variables
[
'#attached'
][
'library'
][]
=
'tsa2/tsa2'
;
$config
=
\Drupal
::
config
(
'tsa2.settings'
);
$tsa2_api
=
$config
->
get
(
'tsa2_api'
);
$lb00
=
$config
->
get
(
'lb00'
);
$lb01
=
$config
->
get
(
'lb01'
);
$lb02
=
$config
->
get
(
'lb02'
);
$lb03
=
$config
->
get
(
'lb03'
);
$lb04
=
$config
->
get
(
'lb04'
);
$lb05
=
$config
->
get
(
'lb05'
);
$lb06
=
$config
->
get
(
'lb06'
);
$lb07
=
$config
->
get
(
'lb07'
);
$lb08
=
$config
->
get
(
'lb08'
);
$lb09
=
$config
->
get
(
'lb09'
);
$lb10
=
$config
->
get
(
'lb10'
);
$lb11
=
$config
->
get
(
'lb11'
);
$lb12
=
$config
->
get
(
'lb12'
);
$lb13
=
$config
->
get
(
'lb13'
);
$lb14
=
$config
->
get
(
'lb14'
);
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'tsa2_api'
]
=
$tsa2_api
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb00'
]
=
$lb00
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb01'
]
=
$lb01
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb02'
]
=
$lb02
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb03'
]
=
$lb03
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb04'
]
=
$lb04
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb05'
]
=
$lb05
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb06'
]
=
$lb06
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb07'
]
=
$lb07
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb08'
]
=
$lb08
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb09'
]
=
$lb09
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb10'
]
=
$lb10
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb11'
]
=
$lb11
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb12'
]
=
$lb12
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb13'
]
=
$lb13
;
$variables
[
'#attached'
][
'drupalSettings'
][
'tsa2'
][
'lb14'
]
=
$lb14
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment