Commit b201c054 authored by alexpott's avatar alexpott
Browse files

Issue #2111209 by Xano: Fixed Rename FormInterface::getFormID() to FormInterface::getFormId().

parent a6d19bf7
......@@ -506,7 +506,7 @@ function entity_form_state_defaults(EntityInterface $entity, $operation = 'defau
*/
function entity_form_submit(EntityInterface $entity, $operation = 'default', &$form_state = array()) {
$form_state += entity_form_state_defaults($entity, $operation);
$form_id = $form_state['build_info']['callback_object']->getFormID();
$form_id = $form_state['build_info']['callback_object']->getFormId();
drupal_form_submit($form_id, $form_state);
}
......
......@@ -131,7 +131,7 @@ function _drupal_form_id($form_arg, &$form_state) {
if ($form_arg instanceof BaseFormIdInterface) {
$form_state['build_info']['base_form_id'] = $form_arg->getBaseFormID();
}
return $form_arg->getFormID();
return $form_arg->getFormId();
}
// Otherwise, the $form_arg is the form ID.
......
......@@ -15,9 +15,9 @@
abstract class ConditionPluginBase extends ExecutablePluginBase implements ConditionInterface {
/**
* Implements \Drupal\Core\Form\FormInterface::getFormID().
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
$definition = $this->getPluginDefinition();
return implode('_', array($definition['module'], $definition['id'], 'condition'));
}
......
......@@ -63,7 +63,7 @@ public function getBaseFormID() {
// it is different from the actual form ID, since callbacks would be invoked
// twice otherwise.
$base_form_id = $this->entity->entityType() . '_form';
if ($base_form_id == $this->getFormID()) {
if ($base_form_id == $this->getFormId()) {
$base_form_id = '';
}
return $base_form_id;
......@@ -72,7 +72,7 @@ public function getBaseFormID() {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
$entity_type = $this->entity->entityType();
$bundle = $this->entity->bundle();
$form_id = $entity_type;
......
......@@ -383,7 +383,7 @@ protected function getController($entity_type, $controller_type) {
*/
public function getForm(EntityInterface $entity, $operation = 'default', array $form_state = array()) {
$form_state += entity_form_state_defaults($entity, $operation);
$form_id = $form_state['build_info']['callback_object']->getFormID();
$form_id = $form_state['build_info']['callback_object']->getFormId();
return drupal_build_form($form_id, $form_state);
}
......
......@@ -18,7 +18,7 @@ interface FormInterface {
* @return string
* The unique string identifying the form.
*/
public function getFormID();
public function getFormId();
/**
* Form constructor.
......
......@@ -46,7 +46,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'action_admin_manage';
}
......
......@@ -15,7 +15,7 @@ class CategorizeCategoryForm extends AggregatorCategorizeFormBase {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'aggregator_page_category_form';
}
......
......@@ -17,7 +17,7 @@ class CategorizeFeedForm extends AggregatorCategorizeFormBase {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'aggregator_page_source_form';
}
......
......@@ -73,7 +73,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'aggregator_form_category';
}
......
......@@ -94,7 +94,7 @@ public function getCancelRoute() {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'aggregator_category_delete';
}
......
......@@ -84,7 +84,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'aggregator_opml_add';
}
......
......@@ -95,7 +95,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'aggregator_admin_form';
}
......
......@@ -42,7 +42,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'ban_ip_form';
}
......
......@@ -46,7 +46,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'ban_ip_delete_form';
}
......
......@@ -127,9 +127,9 @@ public function render($theme = NULL, Request $request = NULL) {
}
/**
* Implements \Drupal\Core\Form\FormInterface::getFormID().
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'block_admin_display_form';
}
......
......@@ -72,7 +72,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'book_admin_edit';
}
......
......@@ -17,7 +17,7 @@ class BookSettingsForm extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'book_admin_settings';
}
......
......@@ -56,7 +56,7 @@ public static function create(ContainerInterface $container) {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'comment_multiple_delete_confirm';
}
......
......@@ -17,7 +17,7 @@ class ConfigExportForm extends FormBase {
/**
* {@inheritdoc}
*/
public function getFormID() {
public function getFormId() {
return 'config_export_form';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment