public function EntityQueueHandlerBase::getTargetTypeLabel in Entityqueue 7
Returns the entity type label of a queue target type.
Overrides EntityQueueHandlerInterface::getTargetTypeLabel
File
- plugins/
entityqueue/ handler/ base.inc, line 148  - Contains Entityqueue handler interface and base class.
 
Class
- EntityQueueHandlerBase
 - An abstract implementation of EntityQueueHandlerInterface.
 
Code
public function getTargetTypeLabel() {
  $entity_info = entity_get_info($this->queue->target_type);
  if (!empty($entity_info['base table'])) {
    return $entity_info['label'];
  }
  return '<em>' . t('Missing entity type (@type)', array(
    '@type' => $this->queue->target_type,
  )) . '</em>';
}