You are here

public static function NetlifyFrontendEnvironment::refreshDeploymentTable in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 modules/build_hooks_netlify/src/Plugin/FrontendEnvironment/NetlifyFrontendEnvironment.php \Drupal\build_hooks_netlify\Plugin\FrontendEnvironment\NetlifyFrontendEnvironment::refreshDeploymentTable()

Ajax form callback to rebuild the latest deployments table.

Parameters

array $form: The form.

\Drupal\Core\Form\FormStateInterface $form_state: The form state of the form.

Return value

array The form array to add back to the form.

File

modules/build_hooks_netlify/src/Plugin/FrontendEnvironment/NetlifyFrontendEnvironment.php, line 233

Class

NetlifyFrontendEnvironment
Provides a 'Netlify' frontend environment type.

Namespace

Drupal\build_hooks_netlify\Plugin\FrontendEnvironment

Code

public static function refreshDeploymentTable(array $form, FormStateInterface $form_state) {
  return $form['latestNetlifyDeployments']['table'];
}