Commit 6d5e445c authored by alexpott's avatar alexpott

Issue #2348547 followup by larowlan: Fixed CommentViewBuilder should use...

Issue #2348547 followup by larowlan: Fixed CommentViewBuilder should use static where possible, subclassing is currently too painful.
parent 16883210
......@@ -133,7 +133,7 @@ public function buildComponents(array &$build, array $entities, array $displays,
$display = $displays[$entity->bundle()];
if ($display->getComponent('links')) {
$callback = get_class() . '::renderLinks';
$callback = get_called_class() . '::renderLinks';
$context = array(
'comment_entity_id' => $entity->id(),
'view_mode' => $view_mode,
......@@ -198,7 +198,7 @@ public function buildComponents(array &$build, array $entities, array $displays,
* A renderable array representing the comment links.
*/
public static function renderLinks(array $element, array $context) {
$callback = get_class() . '::renderLinks';
$callback = get_called_class() . '::renderLinks';
$placeholder = drupal_render_cache_generate_placeholder($callback, $context);
$links = array(
'#theme' => 'links__comment',
......
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