You are here

public function PanelizerEntityInterface::entity_allows_revisions in Panelizer 7.3

Same name and namespace in other branches
  1. 7.2 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, the second parameter is whether or not the user can control if a revision is created, the third states whether or not the revision is created by default.

1 method overrides PanelizerEntityInterface::entity_allows_revisions()
PanelizerEntityDefault::entity_allows_revisions in plugins/entity/PanelizerEntityDefault.class.php
Determine if the entity allows revisions.

File

plugins/entity/PanelizerEntityDefault.class.php, line 230
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);