Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
F
fullcalendar_view-3183913
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Issue forks
fullcalendar_view-3183913
Commits
90067a44
Commit
90067a44
authored
Aug 18, 2020
by
Mingsong Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3165143
friendly button text
parent
13f9f384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/FullcalendarViewPreprocess.php
src/FullcalendarViewPreprocess.php
+9
-1
No files found.
src/FullcalendarViewPreprocess.php
View file @
90067a44
...
...
@@ -4,9 +4,11 @@ namespace Drupal\fullcalendar_view;
use
Drupal\Component\Utility\Xss
;
use
Drupal\Core\Datetime\DrupalDateTime
;
use
Drupal\Core\StringTranslation\StringTranslationTrait
;
class
FullcalendarViewPreprocess
{
use
StringTranslationTrait
;
protected
static
$viewIndex
=
0
;
/**
* Process the view variable array.
...
...
@@ -327,6 +329,12 @@ class FullcalendarViewPreprocess {
'editable'
=>
$options
[
'updateAllowed'
]
!==
0
,
'eventLimit'
=>
true
,
// Allow "more" link when too many events.
'eventOverlap'
=>
$options
[
'allowEventOverlap'
]
!==
0
,
'buttonText'
=>
[
'listMonth'
=>
$this
->
t
(
'List Month'
),
'listYear'
=>
$this
->
t
(
'List Year'
),
'listWeek'
=>
$this
->
t
(
'List Week'
),
'listDay'
=>
$this
->
t
(
'List Day'
),
],
];
// Dialog options.
// Other modules can override following options by custom plugin.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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