Commit abc987d3 authored by paulocs's avatar paulocs Committed by Neslee Canil Pinto

Issue #3173192 by paulocs: Fixing drupal best practices

parent e4411d0e
......@@ -25,7 +25,6 @@ use Drupal\image\Entity\ImageStyle;
*/
function template_preprocess_colorbox_formatter(&$variables) {
// @codingStandardsIgnoreEnd
static $gallery_token = NULL;
$item = $variables['item'];
$item_attributes = isset($variables['item_attributes']) ? $variables['item_attributes'] : [];
......@@ -38,7 +37,6 @@ function template_preprocess_colorbox_formatter(&$variables) {
// Build the caption.
$entity_title = $entity->label();
$entity_type = $entity->getEntityTypeId();
$entity_bundle = $entity->bundle();
switch ($settings['colorbox_caption']) {
case 'auto':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment