Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
all_entity_preview
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
all_entity_preview
Merge requests
!3
#3339841
Committing changes.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
#3339841
Committing changes.
issue/all_entity_preview-3339841:1.0.x
into
1.0.x
Overview
0
Commits
2
Pipelines
0
Changes
3
Open
Nitin Lama
requested to merge
issue/all_entity_preview-3339841:1.0.x
into
1.0.x
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
3
Expand
#3339841
Committing changes, addressed
#9
.
0
0
Merge request reports
Compare
1.0.x
version 2
8b7d895a
2 years ago
version 1
199abe9c
2 years ago
1.0.x (base)
and
latest version
latest version
423ac93c
2 commits,
2 years ago
version 2
8b7d895a
1 commit,
2 years ago
version 1
199abe9c
1 commit,
2 years ago
3 files
+
3
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/Form/PreviewForm.php
+
1
−
11
Options
@@ -60,17 +60,7 @@ class PreviewForm extends FormBase {
}
/**
* Form constructor.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity being previewed.
*
* @return array
* The form structure.
* {@inheritdoc}
*/
public
function
buildForm
(
array
$form
,
FormStateInterface
$form_state
,
EntityInterface
$entity
=
NULL
)
{
$view_mode
=
$entity
->
preview_view_mode
;
Loading