Commit 48649419 authored by paulocs's avatar paulocs Committed by paulocs

Issue #3163057 by paulocs: Fix drupal code standard errors in context/src/Form

parent d9b38e1b
......@@ -6,8 +6,9 @@ use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\NestedArray;
/**
* Provides helper methods for using an AJAX modal. This is a copy of the
* ctools AjaxFormTrait.
* Provides helper methods for using an AJAX modal.
*
* This is a copy of the ctools AjaxFormTrait.
*/
trait AjaxFormTrait {
......@@ -15,6 +16,7 @@ trait AjaxFormTrait {
* Gets attributes for use with an AJAX modal.
*
* @return array
* Array with the ajax modal attributes.
*/
public static function getAjaxAttributes() {
return [
......@@ -30,6 +32,7 @@ trait AjaxFormTrait {
* Gets attributes for use with an add button AJAX modal.
*
* @return array
* Array with the add button AJAX modal attributes.
*/
public static function getAjaxButtonAttributes() {
return NestedArray::mergeDeep(AjaxFormTrait::getAjaxAttributes(), [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment