You are here

public function PanelizerEntityDefault::entity_identifier in Panelizer 7.3

Same name and namespace in other branches
  1. 7.2 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::entity_identifier()

Get the visible identifier if the identity.

This is overridable because it can be a bit awkward using the default label.

Overrides PanelizerEntityInterface::entity_identifier

1 call to PanelizerEntityDefault::entity_identifier()
PanelizerEntityDefault::get_base_contexts in plugins/entity/PanelizerEntityDefault.class.php
Callback to get the base context for a panelized entity
4 methods override PanelizerEntityDefault::entity_identifier()
PanelizerEntityComment::entity_identifier in plugins/entity/PanelizerEntityComment.class.php
Get the visible identifier if the identity.
PanelizerEntityNode::entity_identifier in plugins/entity/PanelizerEntityNode.class.php
Get the visible identifier if the identity.
PanelizerEntityTaxonomyTerm::entity_identifier in plugins/entity/PanelizerEntityTaxonomyTerm.class.php
Get the visible identifier if the identity.
PanelizerEntityUser::entity_identifier in plugins/entity/PanelizerEntityUser.class.php
Get the visible identifier if the identity.

File

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

Class

PanelizerEntityDefault
Base class for the Panelizer Entity plugin.

Code

public function entity_identifier($entity) {
  $entity_info = entity_get_info($this->entity_type);
  return t('This @entity', array(
    '@entity' => $entity_info['label'],
  ));
}