public static function ImageEmbedBlock::updateCallback in File Entity Browser 8
AJAX callback: Re-renders the Entity Browser button/table.
File
- src/
Plugin/ Block/ ImageEmbedBlock.php, line 175
Class
- ImageEmbedBlock
- Provides the "Image Embed" block.
Namespace
Drupal\file_browser\Plugin\BlockCode
public static function updateCallback(array &$form, FormStateInterface $form_state) {
$trigger = $form_state
->getTriggeringElement();
$parents = array_slice($trigger['#array_parents'], 0, -2);
$selection = NestedArray::getValue($form, $parents);
return $selection;
}