Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alloy Magnetic
Compose
Commits
025c7d88
Commit
025c7d88
authored
6 years ago
by
Derek Adams
Browse files
Options
Download
Email Patches
Plain Diff
fix for conditions on non entity forms
parent
0e04c870
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alloy_compose.module
+4
-1
alloy_compose.module
with
4 additions
and
1 deletion
+4
-1
alloy_compose.module
View file @
025c7d88
...
...
@@ -5,7 +5,10 @@ use Drupal\node\Entity\NodeType;
function
alloy_compose_form_alter
(
&
$form
,
&
$form_state
,
$form_id
)
{
if
(
$object
=
$form_state
->
getFormObject
())
{
if
(
$entity
=
$object
->
getEntity
())
{
if
(
!
method_exists
(
$object
,
'getEntity'
))
{
return
;
}
if
(
$entity
=
$object
->
getEntity
())
{
if
(
$entity
->
getEntityTypeId
()
==
'node'
)
{
$node_type
=
NodeType
::
load
(
$entity
->
bundle
());
if
(
$node_type
->
getThirdPartySetting
(
'alloy_compose'
,
'use_compose_interface'
,
false
))
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help