You are here

public function PanelizerEntityInterface::entity_allows_revisions in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityInterface::entity_allows_revisions()

Determine if an entity allows revisions and whether or not the current user has access to control that.

Parameters

$entity: The entity in question.

Return value

An array. The first parameter is a boolean as to whether or not the entity supports revisions and the second parameter is whether or not the user can control whether or not a revision is created.

1 method overrides PanelizerEntityInterface::entity_allows_revisions()
PanelizerEntityDefault::entity_allows_revisions in plugins/entity/PanelizerEntityDefault.class.php
Implement the save function for the entity.

File

plugins/entity/PanelizerEntityDefault.class.php, line 125
Base class for the Panelizer Entity plugin.

Class

PanelizerEntityInterface
Interface to describe how PanelizerEntity plugin objects are implemented.

Code

public function entity_allows_revisions($entity);