Version 8.x-1.6 includes example colorbox styles in the following code in ColorboxSettingsForm.php:

  $form['colorbox_custom_settings']['colorbox_style'] = [
      '#type' => 'select',
      '#title' => $this->t('Style'),
      '#options' => $colorbox_styles,
      '#default_value' => $config->get('custom.style'),
      '#description' => $this->t('Select the style to use for the Colorbox. The example styles are the ones that come with the Colorbox plugin. Select "None" if you have added Colorbox styles to your theme.  <br> <strong>Examples</strong>: <ul><li><a href="/modules/contrib/colorbox/images/admin/example_default.png" target="blank">Default</a></li><li><a href="/modules/contrib/colorbox/images/admin/example_plain.png" target="blank">Plain</a></li><li><a href="/modules/contrib/colorbox/images/admin/example_stockholm_syndrome.png" target="blank">Stockholm Syndrome</a></li><li><a href="/modules/contrib/colorbox/images/admin/colorbox_example_1.png" target="blank">Example 1</a></li><li><a href="/modules/contrib/colorbox/images/admin/colorbox_example_2.png" target="blank">Example 2</a></li><li><a href="/modules/contrib/colorbox/images/admin/colorbox_example_3.png" target="blank">Example 3</a></li><li><a href="/modules/contrib/colorbox/images/admin/colorbox_example_4.png" target="blank">Example 4</a></li><li><a href="/modules/contrib/colorbox/images/admin/example_none.png" target="blank">None</a></li></ul>'),
    ];

Drupal modules should never assume the location of module directories. For example, many sites use a multisite setup or place modules in a subdirectory such as /modules/. In those types of environments, the #description will always return a "404 Not Found".

Drupal 7 issue: https://www.drupal.org/project/colorbox/issues/3127345

Issue fork colorbox-3183921

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shashikant_chauhan created an issue. See original summary.

shashikant_chauhan’s picture

Issue summary: View changes

ilgnerfagundes’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
100.35 KB
24.6 KB
238.8 KB

I checked out the branch and the images are opening correctly

renatog’s picture

Tested and really works

renatog’s picture

Merged into dev branch

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Thank you, everyone, great job

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.