public function PanelizerEntityParagraphsItem::entity_allows_revisions in Paragraphs 7
File
- plugins/
panelizer/ entity/ PanelizerEntityParagraphsItem.class.php, line 69
Class
- PanelizerEntityParagraphsItem
- Panelizer Entity paragraphs item plugin class.
Code
public function entity_allows_revisions($entity) {
$retval = array();
$retval[0] = TRUE;
$retval[1] = $this
->entity_access(!empty($entity->is_new) ? 'create' : 'update', $entity);
return $retval;
}