Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
private_message-3099166
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
private_message-3099166
Commits
7fd2f32d
Commit
7fd2f32d
authored
6 years ago
by
Jay Friendly
Browse files
Options
Downloads
Patches
Plain Diff
Adding two fixes
parent
0cb710cb
No related branches found
Branches containing commit
Tags
1.0.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Entity/Builder/PrivateMessageViewBuilder.php
+1
-1
1 addition, 1 deletion
src/Entity/Builder/PrivateMessageViewBuilder.php
src/Plugin/Field/FieldFormatter/PrivateMessageThreadMessageFormatter.php
+1
-2
1 addition, 2 deletions
...d/FieldFormatter/PrivateMessageThreadMessageFormatter.php
with
2 additions
and
3 deletions
src/Entity/Builder/PrivateMessageViewBuilder.php
+
1
−
1
View file @
7fd2f32d
...
...
@@ -65,7 +65,7 @@ class PrivateMessageViewBuilder extends EntityViewBuilder {
/**
* {@inheritdoc}
*/
public
function
view
(
EntityInterface
$entity
,
$view
m
ode
=
'full'
,
$langcode
=
NULL
)
{
public
function
view
(
EntityInterface
$entity
,
$view
M
ode
=
'full'
,
$langcode
=
NULL
)
{
$message
=
parent
::
view
(
$entity
,
$viewMode
,
$langcode
);
$classes
=
[
'private-message'
];
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Field/FieldFormatter/PrivateMessageThreadMessageFormatter.php
+
1
−
2
View file @
7fd2f32d
...
...
@@ -194,11 +194,10 @@ class PrivateMessageThreadMessageFormatter extends FormatterBase implements Cont
'#default_value'
=>
$this
->
getSetting
(
'message_order'
),
];
$view_modes
=
\Drupal
::
entityManager
()
->
getViewModeOptions
(
'private_message'
,
TRUE
);
$element
[
'view_mode'
]
=
[
'#type'
=>
'select'
,
'#title'
=>
$this
->
t
(
'Private Message view mode'
),
'#options'
=>
$
v
iew
_m
ode
s
,
'#options'
=>
$
this
->
entityManager
->
getV
iew
M
ode
Options
(
'private_message'
,
TRUE
)
,
'#default_value'
=>
$this
->
getSetting
(
'view_mode'
),
];
...
...
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