Update to Drupal 8.0.5. For more information, see https://www.drupal.org/node/2679347
This commit is contained in:
parent
2a9f1f148d
commit
fd3b12cf27
251 changed files with 5439 additions and 957 deletions
|
|
@ -728,6 +728,10 @@ function _views_query_tag_alter_condition(AlterableInterface $query, &$condition
|
|||
* valid. But things like 'page' or 'block' should work here.
|
||||
* @param ...
|
||||
* Any additional parameters will be passed as arguments.
|
||||
*
|
||||
* @return array|null
|
||||
* A renderable array containing the view output or NULL if the display ID
|
||||
* of the view to be executed doesn't exist.
|
||||
*/
|
||||
function views_embed_view($name, $display_id = 'default') {
|
||||
$args = func_get_args();
|
||||
|
|
@ -739,7 +743,12 @@ function views_embed_view($name, $display_id = 'default') {
|
|||
return;
|
||||
}
|
||||
|
||||
return $view->preview($display_id, $args);
|
||||
return [
|
||||
'#type' => 'view',
|
||||
'#name' => $name,
|
||||
'#display_id' => $display_id,
|
||||
'#arguments' => $args,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -751,7 +760,7 @@ function views_embed_view($name, $display_id = 'default') {
|
|||
* The display id. On the edit page for the view in question, you'll find
|
||||
* a list of displays at the left side of the control area. "Master"
|
||||
* will be at the top of that list. Hover your cursor over the name of the
|
||||
* display you want to use. An URL will appear in the status bar of your
|
||||
* display you want to use. A URL will appear in the status bar of your
|
||||
* browser. This is usually at the bottom of the window, in the chrome.
|
||||
* Everything after #views-tab- is the display ID, e.g. page_1.
|
||||
* @param ...
|
||||
|
|
|
|||
Reference in a new issue