Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
layout_paragraphs
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
layout_paragraphs
Commits
1dffc7ca
Commit
1dffc7ca
authored
3 years ago
by
Justin Toupin
Browse files
Options
Downloads
Patches
Plain Diff
minor change for cs
parent
df9278d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!103
Issue #3295875: Add a new dedicated permission for Layout paragraphs configurations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/LayoutParagraphsRendererService.php
+1
-1
1 addition, 1 deletion
src/LayoutParagraphsRendererService.php
with
1 addition
and
1 deletion
src/LayoutParagraphsRendererService.php
+
1
−
1
View file @
1dffc7ca
...
@@ -60,7 +60,7 @@ class LayoutParagraphsRendererService {
...
@@ -60,7 +60,7 @@ class LayoutParagraphsRendererService {
*/
*/
public
function
renderLayoutSection
(
array
&
$build
,
Paragraph
$paragraph
,
string
$view_mode
=
'default'
)
{
public
function
renderLayoutSection
(
array
&
$build
,
Paragraph
$paragraph
,
string
$view_mode
=
'default'
)
{
if
(
!
LayoutParagraphsComponent
::
isLayoutComponent
(
$paragraph
))
{
if
(
!
LayoutParagraphsComponent
::
isLayoutComponent
(
$paragraph
))
{
// @
T
odo Throw an exception if $paragraph does not have a layout applied.
// @
t
odo Throw an exception if $paragraph does not have a layout applied.
return
[];
return
[];
}
}
if
(
$paragraph
->
_referringItem
)
{
if
(
$paragraph
->
_referringItem
)
{
...
...
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