Skip to content
Snippets Groups Projects
Commit 8ab61e88 authored by Liam Morland's avatar Liam Morland
Browse files

Issue #3173862: Rename LayoutBuilderIdsConfigureBlock methods

parent a4c24891
No related branches found
No related tags found
No related merge requests found
......@@ -74,17 +74,17 @@ class LayoutBuilderIdsConfigureBlock implements EventSubscriberInterface {
'#description' => t('Block ID is an optional setting which is used to support an anchor link to this block. For example, entering "feature" lets you link directly to this block by adding "#feature" to the end of the URL.</br>IDs should start with a letter, may only contain letters, numbers, underscores, hyphens, and periods, and should be unique on the page.'),
];
$form['#validate'][] = [$this, 'layoutBuilderIdsFormValidation'];
$form['#validate'][] = [$this, 'layoutBuilderIdsConfigureBlockFormValidation'];
// Add our custom submit function.
array_unshift($form['#submit'], [$this, 'layoutBuilderIdsSubmitForm']);
array_unshift($form['#submit'], [$this, 'layoutBuilderIdsConfigureBlockSubmitForm']);
}
}
/**
* {@inheritdoc}
*/
public function layoutBuilderIdsFormValidation(array &$form, FormStateInterface $form_state) {
public function layoutBuilderIdsConfigureBlockFormValidation(array &$form, FormStateInterface $form_state) {
// Get the layout builder id from the form state.
$layout_builder_id = $form_state->getValue(['settings', 'layout_builder_id']);
......@@ -164,7 +164,7 @@ class LayoutBuilderIdsConfigureBlock implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public function layoutBuilderIdsSubmitForm(array &$form, FormStateInterface $form_state) {
public function layoutBuilderIdsConfigureBlockSubmitForm(array &$form, FormStateInterface $form_state) {
// Load in the layout_builder_id.
$layout_builder_id = $form_state->getValue(['settings', 'layout_builder_id']);
......
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