public function indexMethod($action) { if ($action === 'drop_field') { return 'removeIndex'; } return 'addIndex'; }