Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
e-epal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Σταύρος Παπαδάκης
e-epal
Commits
7d17f7d3
Commit
7d17f7d3
authored
Apr 12, 2017
by
Νίκος Κατσαούνος
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated EpalCriteria entity
parent
7e10b99b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
22 deletions
+42
-22
drupal/modules/epal/src/Entity/EpalCriteria.php
drupal/modules/epal/src/Entity/EpalCriteria.php
+42
-22
No files found.
drupal/modules/epal/src/Entity/EpalCriteria.php
View file @
7d17f7d3
...
...
@@ -193,6 +193,26 @@ 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
(
'Αριθμητικό όριο.'
))
...
...
@@ -229,21 +249,21 @@ class EpalCriteria extends ContentEntityBase implements EpalCriteriaInterface {
->
setDisplayConfigurable
(
'form'
,
TRUE
)
->
setDisplayConfigurable
(
'view'
,
TRUE
);
$fields
[
'mutual_disabled_id'
]
=
BaseFieldDefinition
::
create
(
'
integer
'
)
$fields
[
'mutual_disabled_id'
]
=
BaseFieldDefinition
::
create
(
'
string
'
)
->
setLabel
(
t
(
'Id αμοιβαία αποκλειόμενου κριτηρίου'
))
->
setDescription
(
t
(
'Id αμοιβαία αποκλειόμενου κριτηρίου.'
))
->
setSettings
(
array
(
'max_length'
=>
2
,
'max_length'
=>
100
,
'text_processing'
=>
0
,
))
->
setRequired
(
true
)
->
setDisplayOptions
(
'view'
,
array
(
'label'
=>
'above'
,
'type'
=>
'integer
'
,
'type'
=>
'string
'
,
'weight'
=>
-
4
,
))
->
setDisplayOptions
(
'form'
,
array
(
'type'
=>
'integer
'
,
'type'
=>
'string_textfield
'
,
'weight'
=>
-
4
,
))
->
setDisplayConfigurable
(
'form'
,
TRUE
)
...
...
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