Skip to content
Snippets Groups Projects
Commit ed729ba4 authored by Marc van Gend's avatar Marc van Gend
Browse files

remove typehint on unused function argument

parent f8bfbc4d
No related branches found
No related tags found
No related merge requests found
...@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment