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

fix inline docs and typehinting

parent eb4ef5ed
No related branches found
No related tags found
No related merge requests found
...@@ -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\EntityDisplayModeInterface $entity_view_display */ /** @var \Drupal\Core\Entity\Display\EntityViewDisplayInterface $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\EntityDisplayModeInterface $view_mode_config */ /** @var \Drupal\Core\Entity\Display\EntityViewDisplayInterface $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
*/ */
......
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