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