Skip to content

Commit

Permalink
Merge pull request #42 from palantirnet/PL-35-Ensure-public-functions…
Browse files Browse the repository at this point in the history
…-do-not-start-with-underscores

remove underscores from public methods
  • Loading branch information
froboy authored Aug 29, 2018
2 parents 054b1fd + 2f912c9 commit 92a6150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/SearchApiFederatedSolrSearchAppSettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function getEditableConfigNames() {
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['#validate'][] = [$this, '_form_validation_path_validate'];
$form['#validate'][] = [$this, 'form_validation_path_validate'];

$config = $this->config('search_api_federated_solr.search_app.settings');

Expand Down Expand Up @@ -259,7 +259,7 @@ public function getSiteName(array &$form, FormStateInterface $form_state) {
* @param $form
* @param \Drupal\Core\Form\FormStateInterface $form_state
*/
public function _form_validation_path_validate(&$form, FormStateInterface $form_state) {
public function form_validation_path_validate(&$form, FormStateInterface $form_state) {
$path = $form_state->getValue('path');
if ($path) {
// Check if a route with the config path value already exists.
Expand Down

0 comments on commit 92a6150

Please sign in to comment.