Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fieldblock
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
fieldblock
Commits
9ce62adc
Commit
9ce62adc
authored
10 years ago
by
Marc van Gend
Browse files
Options
Downloads
Patches
Plain Diff
fix inline docs and typehinting
parent
eb4ef5ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fieldblock.module
+10
-2
10 additions, 2 deletions
fieldblock.module
with
10 additions
and
2 deletions
fieldblock.module
+
10
−
2
View file @
9ce62adc
...
@@ -20,7 +20,7 @@ function fieldblock_form_field_ui_display_overview_form_alter(&$form, FormStateI
...
@@ -20,7 +20,7 @@ function fieldblock_form_field_ui_display_overview_form_alter(&$form, FormStateI
$bundle
=
$form
[
'#bundle'
];
$bundle
=
$form
[
'#bundle'
];
$mode
=
$form
[
'#mode'
];
$mode
=
$form
[
'#mode'
];
/** @var \Drupal\Core\Entity\EntityDisplay
Mode
Interface $entity_view_display */
/** @var \Drupal\Core\Entity\
Display\
Entity
View
DisplayInterface $entity_view_display */
$entity_view_display
=
EntityViewDisplay
::
load
(
$entity_type
.
'.'
.
$bundle
.
'.'
.
$mode
);
$entity_view_display
=
EntityViewDisplay
::
load
(
$entity_type
.
'.'
.
$bundle
.
'.'
.
$mode
);
// Add a column header.
// Add a column header.
...
@@ -55,7 +55,7 @@ function fieldblock_field_display_submit($form, FormStateInterface $form_state)
...
@@ -55,7 +55,7 @@ function fieldblock_field_display_submit($form, FormStateInterface $form_state)
$bundle
=
$form
[
'#bundle'
];
$bundle
=
$form
[
'#bundle'
];
$mode
=
$form
[
'#mode'
];
$mode
=
$form
[
'#mode'
];
/** @var \Drupal\Core\Entity\EntityDisplay
Mode
Interface $view_mode_config */
/** @var \Drupal\Core\Entity\
Display\
Entity
View
DisplayInterface $view_mode_config */
$view_mode_config
=
EntityViewDisplay
::
load
(
$entity_type
.
'.'
.
$bundle
.
'.'
.
$mode
);
$view_mode_config
=
EntityViewDisplay
::
load
(
$entity_type
.
'.'
.
$bundle
.
'.'
.
$mode
);
$fields
=
$form_state
->
getValue
(
'fields'
);
$fields
=
$form_state
->
getValue
(
'fields'
);
...
@@ -82,6 +82,14 @@ function fieldblock_field_display_submit($form, FormStateInterface $form_state)
...
@@ -82,6 +82,14 @@ function fieldblock_field_display_submit($form, FormStateInterface $form_state)
* context. The #post_render_cache callback makes this data available to the
* context. The #post_render_cache callback makes this data available to the
* fieldblock when it is built, We also hide the field from the render array.
* fieldblock when it is built, We also hide the field from the render array.
*
*
* @param array &$build
* A renderable array representing the entity content.
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object being rendered. Not used in this implementation.
* @param \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display
* The entity view display holding the display options configured for the
* entity components.
*
* @see \Drupal\fieldblock\Plugin\Block\FieldBlock::fieldBlockPostRenderCache
* @see \Drupal\fieldblock\Plugin\Block\FieldBlock::fieldBlockPostRenderCache
* @see https://www.drupal.org/node/2151609
* @see https://www.drupal.org/node/2151609
*/
*/
...
...
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