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
95b85dd3
Commit
95b85dd3
authored
Apr 12, 2017
by
Χάρης Παπαδόπουλος
Browse files
Merge branch 'component_updates' into 'develop'
Updated EpalCriteria entity See merge request !52
parents
4983bc5d
619f511c
Changes
1
Hide whitespace changes
Inline
Side-by-side
drupal/modules/epal/src/Entity/EpalCriteria.php
View file @
95b85dd3
...
...
@@ -193,25 +193,25 @@ 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
[
'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
(
'Αριθμητικό όριο'
))
...
...
@@ -249,25 +249,25 @@ 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