static public getRelationMassiveActionsPeerForSubForm ( MassiveAction $ma ) | ||
$ma | MassiveAction |
static function getRelationMassiveActionsPeerForSubForm(MassiveAction $ma)
{
switch ($ma->getAction()) {
case 'add':
case 'remove':
return 1;
case 'add_item':
case 'remove_item':
return 2;
}
return 0;
}