Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
synhelper
Commits
8f183bac
Commit
8f183bac
authored
Dec 08, 2017
by
APolitsin
Browse files
entity presave fix
parent
262c3d04
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Hook/EntityPresave.php
View file @
8f183bac
...
...
@@ -51,7 +51,9 @@ class EntityPresave extends ControllerBase {
public
static
function
checkNode
(
$entity
)
{
$result
=
FALSE
;
if
(
method_exists
(
$entity
,
'getType'
))
{
$result
=
$entity
->
getType
();
if
(
property_exists
(
$entity
,
'title'
))
{
$result
=
$entity
->
getType
();
}
}
return
$result
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment