Skip to content

Commit

Permalink
Call to Action widget changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
szatom committed Oct 5, 2017
1 parent 0c05ca2 commit 1b67f04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Plugin/Field/FieldWidget/CallToActionWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
];
}

// Don't render as fieldset, label added as span without label tag.
unset($element['#type']);
$element['uri']['#prefix'] = '<span class="fieldset-legend">' . $element['#title'] . '</span><div class="fieldset-wrapper">';
$element['title']['#suffix'] = '</div>';

return $element;
}

Expand Down

0 comments on commit 1b67f04

Please sign in to comment.