Commit d4252f44 authored by giannisdag's avatar giannisdag Committed by GitHub

Merge pull request #1 from achilleas01/master

initial pull request
parents 519b06f4 59e25b62

Too many changes to show.

To preserve performance only 572 of 572+ files are displayed.

---
# Output debugging info
# loglevel: debug
# Major version of Bootstrap: 3 or 4
bootstrapVersion: 4
# If Bootstrap version 4 is used - turn on/off flexbox model
useFlexbox: false
# Webpack loaders, order matters
styleLoaders:
- style
- css
- sass
# Extract styles to stand-alone css file
# Different settings for different environments can be used,
# It depends on value of NODE_ENV environment variable
# This param can also be set in webpack config:
# entry: 'bootstrap-loader/extractStyles'
extractStyles: false
# env:
# development:
# extractStyles: false
# production:
# extractStyles: true
# Customize Bootstrap variables that get imported before the original Bootstrap variables.
# Thus, derived Bootstrap variables can depend on values from here.
# See the Bootstrap _variables.scss file for examples of derived Bootstrap variables.
#
# preBootstrapCustomizations: ./path/to/bootstrap/pre-customizations.scss
preBootstrapCustomizations: ./myschool/pre-customizations.scss
# This gets loaded after bootstrap/variables is loaded
# Thus, you may customize Bootstrap variables
# based on the values established in the Bootstrap _variables.scss file
#
# bootstrapCustomizations: ./path/to/bootstrap/customizations.scss
# Import your custom styles here
# Usually this endpoint-file contains list of @imports of your application styles
#
# appStyles: ./path/to/your/app/styles/endpoint.scss
appStyles: ./myschool/myschool.scss
### Bootstrap styles
styles:
# Mixins
mixins: true
# Reset and dependencies
normalize: true
print: true
# Core CSS
reboot: true
type: true
images: true
code: true
grid: true
tables: true
forms: true
buttons: true
# Components
transitions: true
dropdown: true
button-group: true
input-group: true
custom-forms: true
nav: true
navbar: true
card: true
breadcrumb: true
pagination: true
jumbotron: true
alert: true
progress: true
media: true
list-group: true
responsive-embed: true
close: true
# Components w/ JavaScript
modal: true
tooltip: true
popover: true
carousel: true
# Utility classes
utilities: true
utilities-background: false
utilities-spacing: false
utilities-responsive: false
### Bootstrap scripts
scripts:
alert: true
button: true
carousel: true
collapse: true
dropdown: true
modal: true
popover: true
scrollspy: true
tab: true
tooltip: true
util: true
<?php
/**
* @file
* Contains aitisi_entity.page.inc.
*
* Page callback for Aitisi entity entities.
*/
use Drupal\Core\Render\Element;
/**
* Prepares variables for Aitisi entity templates.
*
* Default template: aitisi_entity.html.twig.
*
* @param array $variables
* An associative array containing:
* - elements: An associative array containing the user information and any
* - attributes: HTML attributes for the containing element.
*/
function template_preprocess_aitisi_entity(array &$variables) {
// Fetch AitisiEntity Entity Object.
$aitisi_entity = $variables['elements']['#aitisi_entity'];
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}
{
"name": "drupal/eiek",
"type": "drupal-module",
"description": "My Entities module",
"keywords": ["Drupal"],
"license": "GPL-2.0+",
"homepage": "https://www.drupal.org/project/eiek",
"minimum-stability": "dev",
"support": {
"issues": "https://www.drupal.org/project/issues/eiek",
"source": "http://cgit.drupalcode.org/eiek"
},
"require": { }
}
<?php
/**
* @file
* Contains eidikotita_entity.page.inc.
*
* Page callback for Eidikotita entity entities.
*/
use Drupal\Core\Render\Element;
/**
* Prepares variables for Eidikotita entity templates.
*
* Default template: eidikotita_entity.html.twig.
*
* @param array $variables
* An associative array containing:
* - elements: An associative array containing the user information and any
* - attributes: HTML attributes for the containing element.
*/
function template_preprocess_eidikotita_entity(array &$variables) {
// Fetch EidikotitaEntity Entity Object.
$eidikotita_entity = $variables['elements']['#eidikotita_entity'];
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}
name: eiek
type: module
description: My Entities module
core: 8.x
package: Custom
dependencies:
- datetime
- telephone
<?php
use Drupal\Core\Database\Database;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\field\FieldStorageConfigInterface;
/**
* Add a new test able
*/
/*
function eiek_update_8210(&$sandbox) {
$spec = array(
'type' => 'varchar',
'description' => "New Col",
'length' => 20,
'not null' => FALSE,
);
$schema = Database::getConnection()->schema();
$schema->addField('student_entity', 'iekbek', $spec);
}
*/
/*
$edum = \Drupal::entityDefinitionUpdateManager();
$em = \Drupal::entityManager();
$field_iekbek = BaseFieldDefinition::create('string')
->setLabel(t('IEK BEK'))
->setDescription(t('The IEK that created the BEK'))
->setRevisionable(TRUE)
->setSettings(array(
'max_length' => 30,
'text_processing' => 0,
))
->setDefaultValue('')
->setDisplayOptions('view', array(
'label' => 'above',
'type' => 'string',
'weight' => -4,
))
->setDisplayOptions('form', array(
'type' => 'string_textfield',
'weight' => -4,
))
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
$edum->installFieldStorageDefinition('iekbek','student_entity','eiek',$field_iekbek);
// $edum->installFieldStorageDefinition($field_iekbek);
//}
/* $spec = array(
'description' => 'My description',
'fields' => array(
'myfield1' => array(
'description' => 'Myfield1 description.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'myfield2' => array(
'description' => 'Myfield2 description',
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array('myfield1'),
);
$schema = Database::getConnection()->schema();
$schema->createTable('mytable2', $spec);*/
//}
//function eiek_update_8202() {
/*
$database = \Drupal::database();
// Retrieve existing field data.
$entity_type = 'student_entity';
$field = 'iekbek';
$field_storage_configs = \Drupal::entityTypeManager()->getStorage('field_storage_config')
->loadByProperties([
'field_name' => $field,
]);
foreach ($field_storage_configs as $field_storage) {
$new_field_storage = $field_storage->toArray();
$new_field_storage['settings']['max_length'] = 100;
$new_field_storage = FieldStorageConfig::create($new_field_storage);
$new_field_storage->original = $new_field_storage;
$new_field_storage->enforceIsNew(FALSE);
$new_field_storage->save();
}
*/
//}
//function eiek_update_8208() {
// Update definitions and schema.
// $manager = \Drupal::entityDefinitionUpdateManager();
//$storage_definition = $manager->getFieldStorageDefinition('iekbek', 'student_entity');
// $manager->updateFieldStorageDefinition($storage_definition);
//}
entity.student_entity.add_form:
route_name: entity.student_entity.add_form
title: 'Add Student entity'
appears_on:
- entity.student_entity.collection
entity.eidikotita_entity.add_form:
route_name: entity.eidikotita_entity.add_form
title: 'Add Eidikotita entity'
appears_on:
- entity.eidikotita_entity.collection
entity.aitisi_entity.add_form:
route_name: entity.aitisi_entity.add_form
title: 'Add Aitisi entity'
appears_on:
- entity.aitisi_entity.collection
entity.region_entity.add_form:
route_name: entity.region_entity.add_form
title: 'Add Region entity'
appears_on: