LinkElement.php in Field Group Link 8.3
File
src/Element/LinkElement.php
View source
<?php
namespace Drupal\field_group_link\Element;
use Drupal\Core\Render\Element;
use Drupal\Core\Render\Element\Link;
class LinkElement extends Link {
public static function preRenderLink($element) {
foreach (Element::children($element['#title']) as $child) {
if (isset($element[$child])) {
unset($element[$child]);
}
}
return parent::preRenderLink($element);
}
}
Classes
Name |
Description |
LinkElement |
Provides a link render element for Field Groups. |