public static function ImageEmbedBlock::processEntityBrowser in File Entity Browser 8
Render API callback: Processes the entity browser element.
File
- src/
Plugin/ Block/ ImageEmbedBlock.php, line 185
Class
- ImageEmbedBlock
- Provides the "Image Embed" block.
Namespace
Drupal\file_browser\Plugin\BlockCode
public static function processEntityBrowser(&$element, FormStateInterface $form_state, &$complete_form) {
$element['entity_ids']['#ajax'] = [
'callback' => [
get_called_class(),
'updateCallback',
],
'wrapper' => 'image-embed-block-browser',
'event' => 'entity_browser_value_updated',
];
return $element;
}