updated custom modules codes for d9
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
name: Edlp Productions
|
||||
type: module
|
||||
description: Manage productions for edlp d8.
|
||||
core: 8.x
|
||||
core_version_requirement: ^8 || ^9
|
||||
package: Edlp
|
||||
# dependencies:
|
||||
# - migrate_drupal
|
||||
|
||||
@@ -1,11 +1,3 @@
|
||||
# @Author: Bachir Soussi Chiadmi <bach>
|
||||
# @Date: 13-12-2017
|
||||
# @Email: bachir@figureslibres.io
|
||||
# @Filename: edlp_corpus.routing.yml
|
||||
# @Last modified by: bach
|
||||
# @Last modified time: 20-12-2017
|
||||
# @License: GPL-V3
|
||||
|
||||
edlp_productions.productions:
|
||||
path: '/productions'
|
||||
defaults:
|
||||
|
||||
@@ -21,6 +21,7 @@ class ProductionsController extends ControllerBase {
|
||||
$menu_name = 'productions';
|
||||
|
||||
$query = \Drupal::entityQuery('menu_link_content')
|
||||
->accessCheck(TRUE)
|
||||
->condition('menu_name', $menu_name)
|
||||
->condition('enabled', 1)
|
||||
->sort('weight', 'ASC');
|
||||
@@ -43,7 +44,7 @@ class ProductionsController extends ControllerBase {
|
||||
$nids[] = ($m[2]);
|
||||
}
|
||||
|
||||
$this->nodes = entity_load_multiple('node', $nids);
|
||||
$this->nodes = \Drupal::entityTypeManager()->getStorage('node')->loadMultiple($nids);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user