public function PanelizerEntityDefault::entity_allows_revisions in Panelizer 7.3
Same name and namespace in other branches
- 7.2 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::entity_allows_revisions()
Determine if the entity allows revisions.
Parameters
$entity: The entity to test.
Return value
array 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.
Overrides PanelizerEntityInterface::entity_allows_revisions
5 calls to PanelizerEntityDefault::entity_allows_revisions()
- PanelizerEntityDefault::page_content in plugins/
entity/ PanelizerEntityDefault.class.php - PanelizerEntityDefault::page_context in plugins/
entity/ PanelizerEntityDefault.class.php - PanelizerEntityDefault::page_layout in plugins/
entity/ PanelizerEntityDefault.class.php - PanelizerEntityDefault::page_reset in plugins/
entity/ PanelizerEntityDefault.class.php - Switched page callback to give the settings form.
- PanelizerEntityDefault::page_settings in plugins/
entity/ PanelizerEntityDefault.class.php - Switched page callback to give the settings form.
1 method overrides PanelizerEntityDefault::entity_allows_revisions()
- PanelizerEntityNode::entity_allows_revisions in plugins/
entity/ PanelizerEntityNode.class.php - Determine if the entity allows revisions.
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 2034 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityDefault
- Base class for the Panelizer Entity plugin.
Code
public function entity_allows_revisions($entity) {
return array(
// Whether or not the entity supports revisions.
FALSE,
// Whether or not the user can control if a revision is created.
FALSE,
// Whether or not the revision is created by default.
FALSE,
);
}