|
@@ -25,12 +25,15 @@ class EdlpAjaxController extends ControllerBase {
|
|
switch($this->entity_type){
|
|
switch($this->entity_type){
|
|
case 'node':
|
|
case 'node':
|
|
$this->bundle = $this->entity->getType();
|
|
$this->bundle = $this->entity->getType();
|
|
|
|
+ $this->title = $this->entity->getTitle();
|
|
break;
|
|
break;
|
|
case 'taxonomy_term':
|
|
case 'taxonomy_term':
|
|
$this->bundle = $this->entity->bundle();
|
|
$this->bundle = $this->entity->bundle();
|
|
|
|
+ $this->title = $this->entity->getName();
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
$this->bundle = NULL;
|
|
$this->bundle = NULL;
|
|
|
|
+ $this->title = '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -160,10 +163,13 @@ class EdlpAjaxController extends ControllerBase {
|
|
return render($renderable);
|
|
return render($renderable);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ $title = $this->title;
|
|
|
|
+ $title .= $this->viewmode != '' && $this->viewmode != 'default' ? ' | ' . $this->viewmode : '';
|
|
|
|
|
|
$data = [
|
|
$data = [
|
|
'date' => time(),
|
|
'date' => time(),
|
|
'id' => $this->id,
|
|
'id' => $this->id,
|
|
|
|
+ 'title' => $title,
|
|
'view_mode' => $this->viewmode,
|
|
'view_mode' => $this->viewmode,
|
|
'bundle' => $this->bundle,
|
|
'bundle' => $this->bundle,
|
|
'entity_type' => $this->entity_type,
|
|
'entity_type' => $this->entity_type,
|