Commit 9ce62adc authored by marcvangend's avatar marcvangend

fix inline docs and typehinting

parent eb4ef5ed
......@@ -20,7 +20,7 @@ function fieldblock_form_field_ui_display_overview_form_alter(&$form, FormStateI
$bundle = $form['#bundle'];
$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);
// Add a column header.
......@@ -55,7 +55,7 @@ function fieldblock_field_display_submit($form, FormStateInterface $form_state)
$bundle = $form['#bundle'];
$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);
$fields = $form_state->getValue('fields');
......@@ -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
* 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 https://www.drupal.org/node/2151609
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment