Open inline link in modal/colorbox
You just need to make sure the library is added to the request. 

For example, to include the library on every page:

function THEME_page_attachments_alter(array &amp;$attachments) {
  $attachments['#attached']['library'][] = 'colorbox/colorbox';
}