reinstaled drupal core using composer-drupal/drupal-project

This commit is contained in:
2019-04-29 17:50:46 +02:00
parent 1e009f88bf
commit e1f9bb3cd0
5468 changed files with 2488 additions and 395192 deletions
@@ -0,0 +1,14 @@
# @Author: Bachir Soussi Chiadmi <bach>
# @Date: 13-12-2017
# @Email: bachir@figureslibres.io
# @Filename: edlp_fils.info.yml
# @Last modified by: bach
# @Last modified time: 20-12-2017
# @License: GPL-V3
name: Edlp Fils
type: module
description: Manage fils for edlp d8.
core: 8.x
package: Edlp
@@ -0,0 +1,8 @@
<?php
# @Author: Bachir Soussi Chiadmi <bach>
# @Date: 13-12-2017
# @Email: bachir@figureslibres.io
# @Filename: edlp_admin.module
# @Last modified by: bach
# @Last modified time: 20-12-2017
# @License: GPL-V3
@@ -0,0 +1,23 @@
# @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_fils.fils:
path: '/fils'
defaults:
_controller: '\Drupal\edlp_fils\Controller\FilsController::fils'
_title: 'Fils'
requirements:
_permission: 'access content'
edlp_fils.filsajax:
path: '/fils/ajax'
defaults:
_controller: '\Drupal\edlp_fils\Controller\FilsController::filsjson'
_title: 'Fils'
requirements:
_permission: 'access content'
@@ -0,0 +1,44 @@
<?php
namespace Drupal\edlp_fils\Controller;
use Drupal\Core\Controller\ControllerBase;
// use Drupal\Core\Datetime\DrupalDateTime;
use Symfony\Component\HttpFoundation\JsonResponse;
class FilsController extends ControllerBase {
/**
* Display productions as a page.
*
* @return renderable array
*/
public function fils() {
return array(
"#markup"=>"Edlp Fils"
);
}
/**
* Get agenda data as json through ajax.
*
* @return json
*/
public function filsjson() {
$response = new JsonResponse();
$renderable = array(
"#markup"=>"Edlp Fils"
);
$rendered = render($renderable);
$response->setData([
'test'=>'hello',
'rendered'=> $rendered
]);
return $response;
}
}