code/forms/GridFieldAddClassesButton.php 1 location
|
@@ 200-207 (lines=8) @@
|
| 197 |
|
return 'add-classes-' . strtolower(implode('-', $this->getClasses())); |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
public function handleAction(GridField $gridField, $actionName, $arguments, $data) { |
| 201 |
|
switch(strtolower($actionName)) { |
| 202 |
|
case $this->getAction(): |
| 203 |
|
return $this->handleAdd($gridField); |
| 204 |
|
default: |
| 205 |
|
return null; |
| 206 |
|
} |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
/** |
| 210 |
|
* Handles adding a new instance of a selected class. |
code/forms/GridFieldAddNewClassesList.php 1 location
|
@@ 101-108 (lines=8) @@
|
| 98 |
|
/** |
| 99 |
|
* {@inheritDoc} |
| 100 |
|
*/ |
| 101 |
|
public function handleAction(GridField $gridField, $actionName, $arguments, $data) { |
| 102 |
|
switch(strtolower($actionName)) { |
| 103 |
|
case $this->getAction(): |
| 104 |
|
return $this->handleAdd($gridField, $data); |
| 105 |
|
default: |
| 106 |
|
return null; |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
/** |
| 111 |
|
* Get the list of classes that can be selected and created |