Commit eeaeef81 authored by Achilles's avatar Achilles
Browse files

remove iek iekreadydata

parent 519b06f4
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class EiekSchoolSettingsForm.
*
* @package Drupal\iekreadydata\Form
*
* @ingroup iekreadydata
*/
class EiekSchoolSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'EiekSchool_settings';
}
/**
* Form submission handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
// Empty implementation of the abstract submit class.
}
/**
* Defines the settings form for Eiek school entities.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['EiekSchool_settings']['#markup'] = 'Settings form for Eiek school entities. Manage field settings here.';
return $form;
}
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Entity\ContentEntityDeleteForm;
/**
* Provides a form for deleting Eiek sectors entities.
*
* @ingroup iekreadydata
*/
class EiekSectorsDeleteForm extends ContentEntityDeleteForm {
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Form\FormStateInterface;
/**
* Form controller for Eiek sectors edit forms.
*
* @ingroup iekreadydata
*/
class EiekSectorsForm extends ContentEntityForm {
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
/* @var $entity \Drupal\iekreadydata\Entity\EiekSectors */
$form = parent::buildForm($form, $form_state);
$entity = $this->entity;
return $form;
}
/**
* {@inheritdoc}
*/
public function save(array $form, FormStateInterface $form_state) {
$entity = &$this->entity;
$status = parent::save($form, $form_state);
switch ($status) {
case SAVED_NEW:
drupal_set_message($this->t('Created the %label Eiek sectors.', [
'%label' => $entity->label(),
]));
break;
default:
drupal_set_message($this->t('Saved the %label Eiek sectors.', [
'%label' => $entity->label(),
]));
}
$form_state->setRedirect('entity.eiek_sectors.canonical', ['eiek_sectors' => $entity->id()]);
}
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class EiekSectorsSettingsForm.
*
* @package Drupal\iekreadydata\Form
*
* @ingroup iekreadydata
*/
class EiekSectorsSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'EiekSectors_settings';
}
/**
* Form submission handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
// Empty implementation of the abstract submit class.
}
/**
* Defines the settings form for Eiek sectors entities.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['EiekSectors_settings']['#markup'] = 'Settings form for Eiek sectors entities. Manage field settings here.';
return $form;
}
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Entity\ContentEntityDeleteForm;
/**
* Provides a form for deleting Eiek specialties in iek entities.
*
* @ingroup iekreadydata
*/
class EiekSpecialtiesInEpalDeleteForm extends ContentEntityDeleteForm {
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Form\FormStateInterface;
/**
* Form controller for Eiek specialties in iek edit forms.
*
* @ingroup iekreadydata
*/
class EiekSpecialtiesInEpalForm extends ContentEntityForm {
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
/* @var $entity \Drupal\iekreadydata\Entity\EiekSpecialtiesInEpal */
$form = parent::buildForm($form, $form_state);
$entity = $this->entity;
return $form;
}
/**
* {@inheritdoc}
*/
public function save(array $form, FormStateInterface $form_state) {
$entity = &$this->entity;
$status = parent::save($form, $form_state);
switch ($status) {
case SAVED_NEW:
drupal_set_message($this->t('Created the %label Eiek specialties in iek.', [
'%label' => $entity->label(),
]));
break;
default:
drupal_set_message($this->t('Saved the %label Eiek specialties in iek.', [
'%label' => $entity->label(),
]));
}
$form_state->setRedirect('entity.eiek_specialties_in_iek.canonical', ['eiek_specialties_in_iek' => $entity->id()]);
}
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class EiekSpecialtiesInEpalSettingsForm.
*
* @package Drupal\iekreadydata\Form
*
* @ingroup iekreadydata
*/
class EiekSpecialtiesInEpalSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'EiekSpecialtiesInEpal_settings';
}
/**
* Form submission handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
// Empty implementation of the abstract submit class.
}
/**
* Defines the settings form for Eiek specialties in iek entities.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['EiekSpecialtiesInEpal_settings']['#markup'] = 'Settings form for Eiek specialties in iek entities. Manage field settings here.';
return $form;
}
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Entity\ContentEntityDeleteForm;
/**
* Provides a form for deleting Eiek specialty entities.
*
* @ingroup iekreadydata
*/
class EiekSpecialtyDeleteForm extends ContentEntityDeleteForm {
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Form\FormStateInterface;
/**
* Form controller for Eiek specialty edit forms.
*
* @ingroup iekreadydata
*/
class EiekSpecialtyForm extends ContentEntityForm {
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
/* @var $entity \Drupal\iekreadydata\Entity\EiekSpecialty */
$form = parent::buildForm($form, $form_state);
$entity = $this->entity;
return $form;
}
/**
* {@inheritdoc}
*/
public function save(array $form, FormStateInterface $form_state) {
$entity = &$this->entity;
$status = parent::save($form, $form_state);
switch ($status) {
case SAVED_NEW:
drupal_set_message($this->t('Created the %label Eiek specialty.', [
'%label' => $entity->label(),
]));
break;
default:
drupal_set_message($this->t('Saved the %label Eiek specialty.', [
'%label' => $entity->label(),
]));
}
$form_state->setRedirect('entity.eiek_specialty.canonical', ['eiek_specialty' => $entity->id()]);
}
}
<?php
namespace Drupal\iekreadydata\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class EiekSpecialtySettingsForm.
*
* @package Drupal\iekreadydata\Form
*
* @ingroup iekreadydata
*/
class EiekSpecialtySettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'EiekSpecialty_settings';
}
/**
* Form submission handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
// Empty implementation of the abstract submit class.
}
/**
* Defines the settings form for Eiek specialty entities.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['EiekSpecialty_settings']['#markup'] = 'Settings form for Eiek specialty entities. Manage field settings here.';
return $form;
}
}
<?php
namespace Drupal\iekreadydata\Tests;
use Drupal\Core\Url;
use Drupal\simpletest\WebTestBase;
/**
* Simple test to ensure that main page loads with module enabled.
*
* @group iekreadydata
*/
class LoadTest extends WebTestBase{
/**
* Modules to enable.
*
* @var array
*/
public static $modules = ['iekreadydata'];
/**
* A user with permission to administer site configuration.
*
* @var \Drupal\user\UserInterface
*/
protected $user;
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->user = $this->drupalCreateUser(['administer site configuration']);
$this->drupalLogin($this->user);
}
/**
* Tests that the home page loads with a 200 response.
*/
public function testLoad() {
$this->drupalGet(Url::fromRoute('<front>'));
$this->assertResponse(200);
}
}
{#
/**
* @file eiek_admin_area.html.twig
* Default theme implementation to present Eiek admin area data.
*
* This template is used when viewing Eiek admin area pages.
*
*
* Available variables:
* - content: A list of content items. Use 'content' to print all content, or
* - attributes: HTML attributes for the container element.
*
* @see template_preprocess_eiek_admin_area()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('eiek_admin_area') }}>
{% if content %}
{{- content -}}
{% endif %}
</div>
{#
/**
* @file eiek_prefecture.html.twig
* Default theme implementation to present Eiek prefecture data.
*
* This template is used when viewing Eiek prefecture pages.
*
*
* Available variables:
* - content: A list of content items. Use 'content' to print all content, or
* - attributes: HTML attributes for the container element.
*
* @see template_preprocess_eiek_prefecture()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('eiek_prefecture') }}>
{% if content %}
{{- content -}}
{% endif %}
</div>
{#
/**
* @file eiek_region.html.twig
* Default theme implementation to present Eiek region data.
*
* This template is used when viewing Eiek region pages.
*
*
* Available variables:
* - content: A list of content items. Use 'content' to print all content, or
* - attributes: HTML attributes for the container element.
*
* @see template_preprocess_eiek_region()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('eiek_region') }}>
{% if content %}
{{- content -}}
{% endif %}
</div>
{#
/**
* @file eiek_school.html.twig
* Default theme implementation to present Eiek school data.
*
* This template is used when viewing Eiek school pages.
*
*
* Available variables:
* - content: A list of content items. Use 'content' to print all content, or
* - attributes: HTML attributes for the container element.
*
* @see template_preprocess_eiek_school()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('eiek_school') }}>
{% if content %}
{{- content -}}
{% endif %}
</div>
{#
/**
* @file eiek_sectors.html.twig
* Default theme implementation to present Eiek sectors data.
*
* This template is used when viewing Eiek sectors pages.
*
*
* Available variables:
* - content: A list of content items. Use 'content' to print all content, or
* - attributes: HTML attributes for the container element.
*
* @see template_preprocess_eiek_sectors()
*
* @ingroup themeable
*/
#}
<div{{ attributes.addClass('eiek_sectors') }}>
{% if content %}
{{- content -}}
{% endif %}
</div>