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
7655bf3c
Commit
7655bf3c
authored
1 year ago
by
Justin Toupin
Browse files
Options
Downloads
Patches
Plain Diff
Fix method names.
parent
75ade204
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Contracts/ComponentFormInterface.php
+3
-3
3 additions, 3 deletions
src/Contracts/ComponentFormInterface.php
src/Form/ComponentFormBase.php
+3
-3
3 additions, 3 deletions
src/Form/ComponentFormBase.php
with
6 additions
and
6 deletions
src/Contracts/ComponentFormInterface.php
+
3
−
3
View file @
7655bf3c
...
...
@@ -98,9 +98,9 @@ interface ComponentFormInterface extends FormInterface {
public
function
successfulAjaxSubmit
(
array
$form
,
FormStateInterface
$form_state
);
/**
* Get the form
view
mode.
* Get the form mode.
*/
public
function
getForm
View
Mode
();
public
function
getFormMode
();
/**
* Set the form view mode.
...
...
@@ -108,6 +108,6 @@ interface ComponentFormInterface extends FormInterface {
* @param string $view_mode
* The view mode.
*/
public
function
setForm
View
Mode
(
$view_mode
);
public
function
setFormMode
(
$view_mode
);
}
This diff is collapsed.
Click to expand it.
src/Form/ComponentFormBase.php
+
3
−
3
View file @
7655bf3c
...
...
@@ -164,7 +164,7 @@ abstract class ComponentFormBase extends FormBase implements ComponentFormInterf
FormStateInterface
$form_state
)
{
$this
->
initFormLangcodes
(
$form_state
);
$display
=
EntityFormDisplay
::
collectRenderDisplay
(
$this
->
paragraph
,
$this
->
get
View
Mode
());
$display
=
EntityFormDisplay
::
collectRenderDisplay
(
$this
->
paragraph
,
$this
->
get
Form
Mode
());
$display
->
buildForm
(
$this
->
paragraph
,
$form
,
$form_state
);
$this
->
paragraphType
=
$this
->
paragraph
->
getParagraphType
();
$lp_config
=
$this
->
config
(
'layout_paragraphs.settings'
);
...
...
@@ -617,14 +617,14 @@ abstract class ComponentFormBase extends FormBase implements ComponentFormInterf
/**
* {@inheritDoc}
*/
public
function
get
View
Mode
()
{
public
function
get
Form
Mode
()
{
return
$this
->
formMode
;
}
/**
* {@inheritDoc}
*/
public
function
set
View
Mode
(
$view_mode
)
{
public
function
set
Form
Mode
(
$view_mode
)
{
$this
->
formMode
=
$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