Skip to content
Snippets Groups Projects
Commit 632dd409 authored by Yas Naoi's avatar Yas Naoi Committed by Yas Naoi
Browse files

Issue #3017371 by yas: Remove the *SettingsForm.php file

parent 5a4d1854
No related branches found
No related tags found
No related merge requests found
Showing with 0 additions and 599 deletions
<?php
// Updated by yas 2016/05/25
// created by yas 2016/05/19.
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class ElasticIpSettingsForm.
*
* @package Drupal\aws_cloud\Ec2\ElasticIp\Form
*
* @ingroup aws_cloud
*/
class ElasticIpSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'aws_cloud_elastic_ip_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.
}
/**
* Define the form used for CloudScripting settings.
*
* @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.
* @param $cloud_context
* A unique machine name for the cloud provider
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state, $cloud_context = '') {
$form['aws_cloud_elastic_ip_settings']['#markup'] = 'Settings form for Elastic IP. Manage field settings here.';
$form['actions'] = $this->actions($form, $form_state, $cloud_context);
return $form;
}
/**
* {@inheritdoc}
*/
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as $key => $operation) {
$operations[$key]['url']
->setRouteParameter('cloud_context', $entity->getCloudContext());
}
return $operations;
}
}
<?php
// Updated by yas 2016/05/25
// created by yas 2016/05/19.
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class ImageSettingsForm.
*
* @package Drupal\aws_cloud\Ec2\Image\Form
*
* @ingroup aws_cloud
*/
class ImageSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'aws_cloud_image_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.
}
/**
* Define the form used for CloudScripting settings.
*
* @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.
* @param $cloud_context
* A unique machine name for the cloud provider
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state, $cloud_context = '') {
$form['aws_cloud_image_settings']['#markup'] = 'Settings form for Image. Manage field settings here.';
$form['actions'] = $this->actions($form, $form_state, $cloud_context);
return $form;
}
/**
* {@inheritdoc}
*/
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as $key => $operation) {
$operations[$key]['url']
->setRouteParameter('cloud_context', $entity->getCloudContext());
}
return $operations;
}
}
<?php
// Updated by yas 2016/05/25
// udpated by yas 2016/05/20
// created by yas 2016/05/19.
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class InstanceSettingsForm.
*
* @package Drupal\aws_cloud\Ec2\Instance\Form
*
* @ingroup aws_cloud
*/
class InstanceSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'aws_cloud_instance_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.
}
/**
* Define the form used for CloudScripting settings.
*
* @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.
* @param $cloud_context
* A unique machine name for the cloud provider
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state, $cloud_context = '') {
$form['aws_cloud_instance_settings']['#markup'] = 'Settings form for Instance. Manage field settings here.';
$form['actions'] = $this->actions($form, $form_state, $cloud_context);
return $form;
}
/**
* {@inheritdoc}
*/
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as $key => $operation) {
$operations[$key]['url']
->setRouteParameter('cloud_context', $entity->getCloudContext());
}
return $operations;
}
}
<?php
// Updated by yas 2016/05/25
// udpated by yas 2016/05/20
// created by yas 2016/05/19.
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class KeyPairSettingsForm.
*
* @package Drupal\aws_cloud\Ec2\KeyPair\Form
*
* @ingroup aws_cloud
*/
class KeyPairSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'aws_cloud_key_pair_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.
}
/**
* Define the form used for CloudScripting settings.
*
* @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.
* @param $cloud_context
* A unique machine name for the cloud provider
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state, $cloud_context = '') {
$form['key_pair_settings']['#markup'] = 'Settings form for KeyPair. Manage field settings here.';
$form['actions'] = $this->actions($form, $form_state, $cloud_context);
return $form;
}
/**
* {@inheritdoc}
*/
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as $key => $operation) {
$operations[$key]['url']
->setRouteParameter('cloud_context', $entity->getCloudContext());
}
return $operations;
}
}
<?php
// Updated by yas 2016/05/25
// created by yas 2016/05/20
// created by yas 2016/05/19.
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class NetworkInterfaceSettingsForm.
*
* @package Drupal\aws_cloud\Ec2\NetworkInterface\Form
*
* @ingroup aws_cloud
*/
class NetworkInterfaceSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'aws_cloud_network_interface_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.
}
/**
* Define the form used for CloudScripting settings.
*
* @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.
* @param $cloud_context
* A unique machine name for the cloud provider
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state, $cloud_context = '') {
$form['aws_cloud_network_interface_settings']['#markup'] = 'Settings form for NetworkInterface. Manage field settings here.';
$form['actions'] = $this->actions($form, $form_state, $cloud_context);
return $form;
}
/**
* {@inheritdoc}
*/
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as $key => $operation) {
$operations[$key]['url']
->setRouteParameter('cloud_context', $entity->getCloudContext());
}
return $operations;
}
}
<?php
// Updated by yas 2016/05/25
// updated by yas 2016/05/20
// created by yas 2016/05/19.
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class SecurityGroupSettingsForm.
*
* @package Drupal\aws_cloud\Ec2\SecurityGroup\Form
*
* @ingroup aws_cloud
*/
class SecurityGroupSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'aws_cloud_security_group_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.
}
/**
* Define the form used for CloudScripting settings.
*
* @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.
* @param $cloud_context
* A unique machine name for the cloud provider
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state, $cloud_context = '') {
$form['aws_cloud_security_group_settings']['#markup'] = 'Settings form for SecurityGroup. Manage field settings here.';
$form['actions'] = $this->actions($form, $form_state, $cloud_context);
return $form;
}
/**
* {@inheritdoc}
*/
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as $key => $operation) {
$operations[$key]['url']
->setRouteParameter('cloud_context', $entity->getCloudContext());
}
return $operations;
}
}
<?php
// Updated by yas 2016/05/25
// updated by yas 2016/05/20
// created by yas 2016/05/19.
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class SnapshotSettingsForm.
*
* @package Drupal\aws_cloud\Ec2\Snapshot\Form
*
* @ingroup aws_cloud
*/
class SnapshotSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'aws_cloud_snapshot_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.
}
/**
* Define the form used for CloudScripting settings.
*
* @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.
* @param $cloud_context
* A unique machine name for the cloud provider
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state, $cloud_context = '') {
$form['aws_cloud_snapshot_settings']['#markup'] = 'Settings form for Snapshot. Manage field settings here.';
$form['actions'] = $this->actions($form, $form_state, $cloud_context);
return $form;
}
/**
* {@inheritdoc}
*/
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as $key => $operation) {
$operations[$key]['url']
->setRouteParameter('cloud_context', $entity->getCloudContext());
}
return $operations;
}
}
<?php
// Updated by yas 2016/05/25
// updated by yas 2016/05/21
// updated by yas 2016/05/20
// created by yas 2016/05/19.
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class VolumeSettingsForm.
*
* @package Drupal\aws_cloud\Ec2\Volume\Form
*
* @ingroup aws_cloud
*/
class VolumeSettingsForm extends FormBase {
/**
* Returns a unique string identifying the form.
*
* @return string
* The unique string identifying the form.
*/
public function getFormId() {
return 'aws_cloud_volume_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.
}
/**
* Define the form used for CloudScripting settings.
*
* @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.
* @param $cloud_context
* A unique machine name for the cloud provider
*
* @return array
* Form definition array.
*/
public function buildForm(array $form, FormStateInterface $form_state, $cloud_context = '') {
$form['aws_cloud_volume_settings']['#markup'] = 'Settings form for Volume. Manage field settings here.';
$form['actions'] = $this->actions($form, $form_state, $cloud_context);
return $form;
}
/**
* {@inheritdoc}
*/
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as $key => $operation) {
$operations[$key]['url']
->setRouteParameter('cloud_context', $entity->getCloudContext());
}
return $operations;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment