Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clean_node_api
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
clean_node_api
Commits
e563d5b3
Commit
e563d5b3
authored
5 years ago
by
Meysam Zandy
Browse files
Options
Downloads
Patches
Plain Diff
Fix some errors in code
parent
412fd672
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
clean_node_api.module
+1
-1
1 addition, 1 deletion
clean_node_api.module
src/Controller/Helper/Fields.php
+1
-0
1 addition, 0 deletions
src/Controller/Helper/Fields.php
src/Controller/Node.php
+4
-4
4 additions, 4 deletions
src/Controller/Node.php
with
6 additions
and
5 deletions
clean_node_api.module
+
1
−
1
View file @
e563d5b3
...
...
@@ -2,7 +2,7 @@
/**
* @file
* +
* Clean restful api.
* Clean restful api.
*/
use
Drupal\Core\Routing\RouteMatchInterface
;
...
...
This diff is collapsed.
Click to expand it.
src/Controller/Helper/Fields.php
+
1
−
0
View file @
e563d5b3
...
...
@@ -931,6 +931,7 @@ class Fields {
* Reference Control .
*
* @param \Drupal\node\NodeInterface $node
* node interface
* @param string $key
* Key Param.
* @param array $values
...
...
This diff is collapsed.
Click to expand it.
src/Controller/Node.php
+
4
−
4
View file @
e563d5b3
...
...
@@ -16,14 +16,14 @@ class Node {
*
* @var mixed
*/
private
$body
;
private
$body
;
/**
* Define message.
*
* @var string
*/
private
$message
;
private
$message
;
/**
* Define status Message.
...
...
@@ -50,9 +50,9 @@ class Node {
*/
public
function
getNode
(
NodeInterface
$node
):
JsonResponse
{
$this
->
body
=
MainHelper
::
rebuildFields
(
$node
);
$this
->
body
=
MainHelper
::
rebuildFields
(
$node
);
return
MainHelper
::
returnDataInJson
(
$this
->
body
,
$this
->
message
,
$this
->
statusCode
,
$this
->
statusMessage
);
return
MainHelper
::
returnDataInJson
(
$this
->
body
,
$this
->
message
,
$this
->
statusCode
,
$this
->
statusMessage
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment