Commit 1e8b3853 authored by git's avatar git Committed by Miro Dietiker
Browse files

Issue #2539332 by MatejZmitko, Bambell: Add missing documentation to SourcePluginUiInterface

parent 9d74ad94
Loading
Loading
Loading
Loading
+2 −2
Changes for sources/locale/src/LocaleSourcePluginUi.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ class LocaleSourcePluginUi extends SourcePluginUiBase {
  }

  /**
   * Implements TMGMTSourceUIControllerInterface::overviewForm().
   * {@inheritdoc}
   */
  public function overviewForm(array $form, FormStateInterface $form_state, $type) {
    $form = parent::overviewForm($form, $form_state, $type);
@@ -238,7 +238,7 @@ class LocaleSourcePluginUi extends SourcePluginUiBase {
  }

  /**
   * Implements TMGMTSourceUIControllerInterface::overviewFormSubmit().
   * {@inheritdoc}
   */
  public function overviewFormSubmit(array $form, FormStateInterface $form_state, $type) {
    // Handle search redirect.
+19 −2
Changes for src/SourcePluginUiBase.php: 19 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -42,7 +42,17 @@ class SourcePluginUiBase extends PluginBase implements SourcePluginUiInterface {
  }

  /**
   * {@inheritdoc}
   * Builds the overview form for the source entities.
   *
   * @param array $form
   *   Drupal form array.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The current state of the form.
   * @param string $type
   *   Entity type.
   *
   * @return array
   *   Drupal form array.
   */
  public function overviewForm(array $form, FormStateInterface $form_state, $type) {
    $form += $this->overviewSearchFormPart($form, $form_state, $type);
@@ -66,7 +76,14 @@ class SourcePluginUiBase extends PluginBase implements SourcePluginUiInterface {
  }

  /**
   * {@inheritdoc}
   * Submit handler for the source entities overview form.
   *
   * @param array $form
   *   Drupal form array.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The current state of the form.
   * @param string $type
   *   Entity type.
   */
  public function overviewFormSubmit(array $form, FormStateInterface $form_state, $type) {
    // Nothing to do here by default.