Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stacktable
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
stacktable
Commits
2f1ee2e9
Commit
2f1ee2e9
authored
3 years ago
by
Hannes Kirsman
Committed by
Hannes Kirsman
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3274569
by hkirsman: Disable in admin
parent
f9f8910c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stacktable.module
+10
-0
10 additions, 0 deletions
stacktable.module
with
10 additions
and
0 deletions
stacktable.module
+
10
−
0
View file @
2f1ee2e9
...
...
@@ -11,6 +11,11 @@ use Drupal\Core\Render\Markup;
* Implements hook_page_attachments().
*/
function
stacktable_page_attachments
(
array
&
$page
)
{
// Don't enable in admin.
if
(
\Drupal
::
service
(
'router.admin_context'
)
->
isAdminRoute
())
{
return
;
}
$config
=
\Drupal
::
config
(
'stacktable.settings'
);
$page
[
'#attached'
][
'library'
][]
=
'stacktable/stacktablejs_init'
;
...
...
@@ -38,6 +43,11 @@ function stacktable_page_attachments(array &$page) {
* Adds label for the placeholder for tables that are opened in modal.
*/
function
stacktable_preprocess_html
(
&
$variables
)
{
// Don't enable in admin.
if
(
\Drupal
::
service
(
'router.admin_context'
)
->
isAdminRoute
())
{
return
;
}
$config
=
\Drupal
::
config
(
'stacktable.settings'
);
// Sub-feature of "On demand" method is opening the table in modal - add
...
...
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