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
ed729ba4
Commit
ed729ba4
authored
10 years ago
by
Marc van Gend
Browse files
Options
Downloads
Patches
Plain Diff
remove typehint on unused function argument
parent
f8bfbc4d
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
+3
-3
3 additions, 3 deletions
fieldblock.module
with
3 additions
and
3 deletions
fieldblock.module
+
3
−
3
View file @
ed729ba4
...
@@ -11,7 +11,7 @@ use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
...
@@ -11,7 +11,7 @@ use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
/**
/**
* Implements hook_form_alter().
* Implements hook_form_alter().
*
*
* Adds a column to the "display fields" table-form, with a checkbox for each
* Adds a column to the "display fields" table-form, with a checkbox for each
* field.
* field.
*/
*/
...
@@ -81,11 +81,11 @@ function fieldblock_field_display_submit($form, FormStateInterface $form_state)
...
@@ -81,11 +81,11 @@ function fieldblock_field_display_submit($form, FormStateInterface $form_state)
* Takes fields out of the current entity and caches them in a post render cache
* Takes fields out of the current entity and caches them in a post render cache
* 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.
*
*
* @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
*/
*/
function
fieldblock_entity_view_alter
(
array
&
$build
,
Drupal
\Core\Entity\EntityInterface
$entity
,
EntityViewDisplayInterface
$display
)
{
function
fieldblock_entity_view_alter
(
array
&
$build
,
$entity
,
EntityViewDisplayInterface
$display
)
{
$fieldblock_settings
=
$display
->
getThirdPartySettings
(
'fieldblock'
);
$fieldblock_settings
=
$display
->
getThirdPartySettings
(
'fieldblock'
);
$display_id
=
$display
->
get
(
'id'
);
$display_id
=
$display
->
get
(
'id'
);
...
...
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