Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CERN Display Formats
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Web Team
Drupal
Public Drupal Repositories
Drupal 8
D8 Modules
CERN Display Formats
Merge requests
!6
Resolve "Error caused by display format"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Error caused by display format"
5-error-caused-by-display-format
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Konstantinos Platis
requested to merge
5-error-caused-by-display-format
into
dev
6 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#5 (closed)
Edited
6 years ago
by
Konstantinos Platis
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
db216fb2
1 commit,
6 years ago
2 files
+
40
−
23
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/Plugin/views/style/HorizontalBoxes.php
+
24
−
4
Options
@@ -33,14 +33,34 @@ class HorizontalBoxes extends DefaultStyle
@@ -33,14 +33,34 @@ class HorizontalBoxes extends DefaultStyle
protected
$usesoptions
=
true
;
protected
$usesoptions
=
true
;
protected
$renderFields
=
true
;
protected
$renderFields
=
true
;
/**
* Defines the initial options of the Horizontal Boxes.
*
* @return mixed
*/
protected
function
defineOptions
(){
protected
function
defineOptions
(){
$options
=
parent
::
defineOptions
();
$options
=
parent
::
defineOptions
();
$options
[
'row_class'
]
=
'horizontal-boxes-row'
;
$options
[
'row_class'
]
=
array
(
'default'
=>
'horizontal-boxes-row'
)
;
$options
[
'default_row_class'
]
=
'horizontal-boxes-row'
;
return
$options
;
return
$options
;
}
}
}
/**
\ No newline at end of file
* Overrides the options form of HB
*
* @param $form
* @param FormStateInterface $form_state
*/
public
function
buildOptionsForm
(
&
$form
,
FormStateInterface
$form_state
)
{
parent
::
buildOptionsForm
(
$form
,
$form_state
);
$form
[
'row_class'
]
=
array
(
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'Row Class'
),
'#default_value'
=>
(
isset
(
$this
->
options
[
'row_class'
]))
?
$this
->
options
[
'row_class'
]
:
'horizontal-boxes-row'
,
);
}
}
\ No newline at end of file
Loading