Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
7d17f7d3
Commit
7d17f7d3
authored
Apr 12, 2017
by
Νίκος Κατσαούνος
Browse files
Updated EpalCriteria entity
parent
7e10b99b
Changes
1
Hide whitespace changes
Inline
Side-by-side
drupal/modules/epal/src/Entity/EpalCriteria.php
View file @
7d17f7d3
...
...
@@ -192,7 +192,27 @@ class EpalCriteria extends ContentEntityBase implements EpalCriteriaInterface {
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'category'
]
=
BaseFieldDefinition
::
create
(
'string'
)
->
setLabel
(
t
(
'Ονομασία κατηγορίας'
))
->
setDescription
(
t
(
'Ονομασία κατηγορίας.'
))
->
setSettings
(
array
(
'max_length'
=>
100
,
'text_processing'
=>
0
,
))
->
setRequired
(
true
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above'
,
'type'
=>
'string'
,
'weight'
=>
-
4
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'string_textfield'
,
'weight'
=>
-
4
,
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'value_limit'
]
=
BaseFieldDefinition
::
create
(
'float'
)
->
setLabel
(
t
(
'Αριθμητικό όριο'
))
->
setDescription
(
t
(
'Αριθμητικό όριο.'
))
...
...
@@ -210,7 +230,7 @@ class EpalCriteria extends ContentEntityBase implements EpalCriteriaInterface {
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'moria'
]
=
BaseFieldDefinition
::
create
(
'float'
)
->
setLabel
(
t
(
'Μόρια'
))
->
setDescription
(
t
(
'Μόρια.'
))
...
...
@@ -228,26 +248,26 @@ class EpalCriteria extends ContentEntityBase implements EpalCriteriaInterface {
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'mutual_disabled_id'
]
=
BaseFieldDefinition
::
create
(
'
integer
'
)
->
setLabel
(
t
(
'Id αμοιβαία αποκλειόμενου κριτηρίου'
))
->
setDescription
(
t
(
'Id αμοιβαία αποκλειόμενου κριτηρίου.'
))
->
setSettings
(
array
(
'max_length'
=>
2
,
'text_processing'
=>
0
,
))
->
setRequired
(
true
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above'
,
'type'
=>
'
integer
'
,
'weight'
=>
-
4
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'
integer
'
,
'weight'
=>
-
4
,
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'mutual_disabled_id'
]
=
BaseFieldDefinition
::
create
(
'
string
'
)
->
setLabel
(
t
(
'Id αμοιβαία αποκλειόμενου κριτηρίου'
))
->
setDescription
(
t
(
'Id αμοιβαία αποκλειόμενου κριτηρίου.'
))
->
setSettings
(
array
(
'max_length'
=>
100
,
'text_processing'
=>
0
,
))
->
setRequired
(
true
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above'
,
'type'
=>
'
string
'
,
'weight'
=>
-
4
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'
string_textfield
'
,
'weight'
=>
-
4
,
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'status'
]
=
BaseFieldDefinition
::
create
(
'boolean'
)
->
setLabel
(
t
(
'Publishing status'
))
...
...
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