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
|
@@ 204-211 (lines=8) @@
|
| 201 |
|
/** |
| 202 |
|
* {@inheritDoc} |
| 203 |
|
*/ |
| 204 |
|
public function handleAction(GridField $gridField, $actionName, $arguments, $data) { |
| 205 |
|
switch(strtolower($actionName)) { |
| 206 |
|
case $this->getAction(): |
| 207 |
|
return $this->handleAdd($gridField, $data); |
| 208 |
|
default: |
| 209 |
|
return null; |
| 210 |
|
} |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
/** |
| 214 |
|
* Get the list of classes that can be selected and created |