Skip to content
Snippets Groups Projects
Commit 7655bf3c authored by Justin Toupin's avatar Justin Toupin
Browse files

Fix method names.

parent 75ade204
No related branches found
No related tags found
No related merge requests found
......@@ -98,9 +98,9 @@ interface ComponentFormInterface extends FormInterface {
public function successfulAjaxSubmit(array $form, FormStateInterface $form_state);
/**
* Get the form view mode.
* Get the form mode.
*/
public function getFormViewMode();
public function getFormMode();
/**
* Set the form view mode.
......@@ -108,6 +108,6 @@ interface ComponentFormInterface extends FormInterface {
* @param string $view_mode
* The view mode.
*/
public function setFormViewMode($view_mode);
public function setFormMode($view_mode);
}
......@@ -164,7 +164,7 @@ abstract class ComponentFormBase extends FormBase implements ComponentFormInterf
FormStateInterface $form_state) {
$this->initFormLangcodes($form_state);
$display = EntityFormDisplay::collectRenderDisplay($this->paragraph, $this->getViewMode());
$display = EntityFormDisplay::collectRenderDisplay($this->paragraph, $this->getFormMode());
$display->buildForm($this->paragraph, $form, $form_state);
$this->paragraphType = $this->paragraph->getParagraphType();
$lp_config = $this->config('layout_paragraphs.settings');
......@@ -617,14 +617,14 @@ abstract class ComponentFormBase extends FormBase implements ComponentFormInterf
/**
* {@inheritDoc}
*/
public function getViewMode() {
public function getFormMode() {
return $this->formMode;
}
/**
* {@inheritDoc}
*/
public function setViewMode($view_mode) {
public function setFormMode($view_mode) {
$this->formMode = $view_mode;
}
......
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