-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #113: Extend EntityPlusController and rewrite `template_preproc…
…ess_paragraphs_item` Fixes #113
- Loading branch information
1 parent
6428ffa
commit 729be00
Showing
3 changed files
with
82 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Entity Plus Controller implementation for the paragraphs entity. | ||
*/ | ||
|
||
class ParagraphsItemEntityController extends EntityPlusController { | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function buildContent($entity, $view_mode = 'full', $langcode = NULL, $content = array()) { | ||
$build = parent::buildContent($entity, $view_mode, $langcode); | ||
$build['#theme'] = 'paragraphs_item'; | ||
return $build; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters