Skip to content

Commit

Permalink
Add original Classname to ElementHolder.ss for ElementVirtualLinked
Browse files Browse the repository at this point in the history
  • Loading branch information
Leapfrognz committed Sep 25, 2016
1 parent 65328ab commit 50fadb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/models/ElementVirtualLinked.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ public function getCMSFields() {

return $fields;
}

public function getExtraClass() {
return $this->LinkedElement()->ClassName . ' ' . $this->getField('ExtraClass');
}
}

0 comments on commit 50fadb1

Please sign in to comment.