This module depends on the colorbox module.

The colorbox load option was separated from the main module. However the current colorbox load module has other dependencies and took a slightly different direction.

This module follows the same path as it was in drupal 7.

Example

HTML:
<a href="/example.html" class="colorbox-load">View</a>

Code:

$url = Url::fromUri('internal:/example.html');
$link = Link::fromTextAndUrl(t('View'), $url);
$output = $link->toRenderable();
$output['#attributes']['class'] = [
  'colorbox-load',
];
colorbox_simple_load_page_attachments($output);
Supporting organizations: 

Project information

Releases